Understanding cpuset
When you're dealing with a server that's running lots of containers and processes, it's sometimes beneficial to assign a container or a process to a certain CPU core or set of CPU cores. On a machine with more than one physical CPU, it might also be beneficial to assign a memory node, as well. To see what I'm talking about, install numactl
on your Fedora machine, like this:
[donnie@fedora ~]$ sudo dnf install numactl
Use the -H
option to look at the hardware list, like this:
[donnie@fedora ~]$ numactl -H available: 1 nodes (0) node 0 cpus: 0 1 2 3 node 0 size: 7939 MB node 0 free: 6613 MB node distances: node 0 0: 10 [donnie@fedora ~]$
There's one NUMA
node, which is node 0
, and which is associated with four CPUs. Well, in reality, there's only one CPU that has four CPU cores. We also see the amount of memory that is assigned to this node.
So, now you're saying, But Donnie...