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>
This commit is contained in:
@@ -307,6 +307,7 @@ All cgroup/resource control settings are available for transient units
|
||||
✓ StartupAllowedCPUs=
|
||||
✓ AllowedMemoryNodes=
|
||||
✓ StartupAllowedMemoryNodes=
|
||||
✓ CPUSetPartition=
|
||||
✓ DisableControllers=
|
||||
✓ Delegate=
|
||||
✓ MemoryMin=
|
||||
|
||||
Reference in New Issue
Block a user