8.9.1 Pinning Processes to CPU Cores

Define two cgroups that can be used to assign tasks to run on different sets of CPU cores.

mount {
    cpuset = /cgroup/coregrp;
}

group locores {
    cpuset {
        cpuset.mems="0";
#       Run tasks on cores 0 through 3
        cpuset.cpus="0-3"; 
    }
}

group hicores {
    cpuset {
        cpuset.mems="0";
#       Run tasks on cores 4 through 7
        cpuset.cpus="4-7"; 
    }
}