[systemd-devel] CPUAffinity=all ?
Mantas Mikulėnas
grawity at gmail.com
Thu Mar 23 23:27:47 UTC 2023
My wild guess would be "no", in order to remain compatible with CPUs that
might be added to the system at runtime.
On Thu, Mar 23, 2023, 23:00 Etienne Champetier <champetier.etienne at gmail.com>
wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230324/3b683082/attachment.htm>
More information about the systemd-devel
mailing list