pvc-ansible/roles/pvc/templates/cputuning/machine.slice.j2

14 lines
264 B
Django/Jinja

# PVC VM slice unit
# {{ ansible_managed }}
[Unit]
Description=Virtual Machine and Container Slice
Documentation=man:systemd.special(7)
Before=slices.target
[Slice]
CPUAccounting = true
Delegate = true
CPUAffinity = {{ cpuset_vm }}
AllowedCPUs = {{ cpuset_vm }}