[systemd-devel] CPUAffinity=all ?

Etienne Champetier champetier.etienne at gmail.com
Thu Mar 23 20:37:40 UTC 2023


Hello,

I'm setting `CPUAffinity=0-1` in /etc/systemd/system.conf, this works great.
Now, I want one of my units to set CPUAffinity to all available CPUs,
without knowing the number of CPUs.
Using `CPUAffinity=` reset the setting but we are still inheriting
from the parent so I still have `Cpus_allowed_list: 0-1`
Is there a way to do that in the latest systemd versions ? (I'm using
Alma Linux 8.7 / systemd-239-68.el8_7.4)

Thanks
Etienne


More information about the systemd-devel mailing list