This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
realtime:documentation:howto:tools:cpu-partitioning:cpusets [2023/09/28 08:19] costa.shul |
realtime:documentation:howto:tools:cpu-partitioning:cpusets [2023/10/02 12:19] (current) costa.shul context backlink to cpu-partitioning |
||
---|---|---|---|
Line 2: | Line 2: | ||
Cpusets is a Linux kernel facility and a subset of cgroups-v1, that | Cpusets is a Linux kernel facility and a subset of cgroups-v1, that | ||
- | provides a mechanism to assign a set of CPUs and NUMA memory nodes (if | + | provides a [[realtime:documentation:howto:tools:cpu-partitioning:start|mechanism to assign a set of CPUs]] and NUMA memory nodes (if |
NUMA is available) to a set of tasks. This means in effect, that the | NUMA is available) to a set of tasks. This means in effect, that the | ||
tasks are constrained to the assigned cpusets. For a detailed documentation of cpusets, | tasks are constrained to the assigned cpusets. For a detailed documentation of cpusets, | ||
Line 54: | Line 54: | ||
$ for pid in $(cat /dev/cpuset/tasks); do /bin/echo $pid > /dev/cpuset/system/tasks; done | $ for pid in $(cat /dev/cpuset/tasks); do /bin/echo $pid > /dev/cpuset/system/tasks; done | ||
</code> | </code> | ||
+ | |||
+ | ===== References ====== | ||
+ | * [[https://docs.kernel.org/admin-guide/cgroup-v1/cpusets.html|CPUSETS kernel doc]] | ||
+ | * [[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/cpuset.h|include/linux/cpuset.h]] | ||
+ | * [[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/cgroup/cpuset.c|kernel/cgroup/cpuset.c]] |