In short:
cpuset - confine processes to processor and memory node subsets
In addition to the above pseudo-files in each directory below /dev/cpuset
, each process has a pseudo-file, /proc/<pid>/cpuset
, that displays the path of the process's cpuset
directory relative to the root of the cpuset file system.
Also the /proc/<pid>/status
file for each process has four added lines, displaying the process's Cpus_allowed (on which CPUs it may be scheduled) and Mems_allowed (on which memory nodes it may obtain memory), in the two formats Mask Format and List Format as shown in the following example:
Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff
Cpus_allowed_list: 0-127
Mems_allowed: ffffffff,ffffffff
Mems_allowed_list: 0-63
The "allowed" fields were added in Linux 2.6.24; the "allowed_list" fields were added in Linux 2.6.26.
From man 7 cpuset.