[systemd-devel] CPUAffinity=all ?

Etienne Champetier champetier.etienne at gmail.com
Thu Mar 23 20:59:38 UTC 2023


Le jeu. 23 mars 2023 à 16:37, Etienne Champetier
<champetier.etienne at gmail.com> a écrit :
>
> 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)

Actually `CPUAffinity=0-999` works,
any plans to make it error out or warn when CPU don't exists ?

> Thanks
> Etienne


More information about the systemd-devel mailing list