]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Add CPUSetPartition= setting
authorglemco <32201227+glemco@users.noreply.github.com>
Sun, 10 May 2026 09:48:27 +0000 (11:48 +0200)
committerglemco <32201227+glemco@users.noreply.github.com>
Thu, 14 May 2026 06:55:44 +0000 (08:55 +0200)
commit43b53679da0a088dab6c8ff966a0ccbfcdeeafde
tree794d7bdfcb09daa0a498af5328229a84d5bffd63
parent8e6ad359e36ff360e5b2fd39320944b44b1fb035
cgroup: Add CPUSetPartition= setting

Add support for configuring cpuset partition type via the
CPUSetPartition= unit file setting. This controls the kernel's
cpuset.cpus.partition cgroup attribute.

The setting takes one of "member", "root", or "isolated". This is
useful for real-time workloads that require dedicated CPU resources
without interference from other processes.

When set, systemd will write the partition type to the
cpuset.cpus.partition cgroup file. If the kernel rejects the value
(e.g., due to partition hierarchy rules), a warning is logged and the
unit continues with the kernel's default partition type.

Co-developed-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
14 files changed:
docs/TRANSIENT-SETTINGS.md
man/org.freedesktop.systemd1.xml
man/systemd.resource-control.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-cgroup.c
src/core/execute-serialize.c
src/core/load-fragment-gperf.gperf.in
src/core/load-fragment.c
src/core/load-fragment.h
src/core/varlink-cgroup.c
src/shared/bus-unit-util.c
src/shared/varlink-io.systemd.Unit.c
src/test/test-bus-unit-util.c