This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
realtime:documentation:howto:tools:cpu-partitioning:cpusets [2017/07/17 16:04] anna-maria created |
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, | ||
| - | please refere to the [[https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt|Linux kernel documentation]]. | + | please refer to the [[https://docs.kernel.org/admin-guide/cgroup-v1/cpusets.html|CPUSETS kernel doc]]. |
| ===== Enable cpusets ===== | ===== Enable 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]] | ||