Logo
Explore Help
Sign In
parallelvirtualcluster/pvc-ansible
1
0
Fork 0
You've already forked pvc-ansible
Code Issues Pull Requests Projects Releases Wiki Activity
Files
07d75573d675048d5dab534f9acdf37a4d27b6bc
pvc-ansible/roles/pvc/templates/cputuning/machine.slice.j2

14 lines
264 B
Plaintext
Raw Normal View History

Add updated tuning configuration 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.
2023-09-01 15:42:29 -04:00
# 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 }}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 639ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API