[systemd-devel] set-property CPUAffinity
Lennart Poettering
lennart at poettering.net
Thu Oct 31 11:21:50 UTC 2019
On Di, 03.09.19 19:49, Alexey Perevalov (a.perevalov at samsung.com) wrote:
> Hello Michal,
>
> Thank you for response!
>
> On 9/3/19 6:03 PM, Michal Koutný wrote:
> > Hello Alexey.
> >
> > On Fri, Aug 30, 2019 at 01:21:50PM +0300, Alexey Perevalov <a.perevalov at samsung.com> wrote:
> > > [...]
> > > The question is: changing CPUAffinity property (cpuset.cpus) is not yet
> > > allowed in systemd API, right? Is it planned?
> > Note that CPUAffinity= uses the mechanism of sched_setaffinity(2) which
> > is different from using cpuset controller restrictions (that's also why
> > you find it in `man systemd.exec` and not it `man
> > systemd.resource-control`).
> >
> > IMO, systemd may eventually support the cpuset controller with a
> > different directive.
>
> Does it mean community open for enhancement in this direction?
>
> Looks like current work on issues and enhancements are doing in github,
> so I can create a RFE.
Old cgroupsv1 cpuset was a horrible, broken interface which is why we
are not supporting it. On cgroupsv2 things are better, and since
047f5d63d7a1ab75073f8485e2f9b550d25b0772 we now have support for it in
systemd.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list