Uses a much nicer CPU tuning configuration, leveraging systemd's AllowedCPUs and CPUAffinity options within a set of slices (some default, some custom). Configuration is also greatly simplified versus the previous implementation, simply asking for a number of CPUS for both the system and OSDs, and calculating everything else that is required. Also switches (back) to the v2 unified cgroup hierarchy by default as required by the systemd AllowedCPUs directive.
14 lines
265 B
Django/Jinja
14 lines
265 B
Django/Jinja
# PVC VM slice unit
|
|
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description = User and Session Slice
|
|
Documentation = man:systemd.special(7)
|
|
Before = slices.target
|
|
|
|
[Slice]
|
|
CPUAccounting = true
|
|
Delegate = true
|
|
CPUAffinity = {{ cpuset_system }}
|
|
AllowedCPUs = {{ cpuset_system }}
|