[systemd-devel] set-property CPUAffinity
Michal Koutný
mkoutny at suse.com
Tue Sep 3 15:03:16 UTC 2019
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.
> [...] on the RHEL7 both libvirt & kubernetes handle its vm & pods in
> kubepods.slice and machine.slice sub cgroup respectively in
> appropriate cpuset mount point. [...]
The components that do CPU pinning via cpuset controller do that on
their own (relying on no collisions in the cpuset tree).
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190903/954d04cf/attachment-0001.sig>
More information about the systemd-devel
mailing list