[systemd-devel] Is it possible to set CPUAffinity at runtime
Cecil Westerhof
cldwesterhof at gmail.com
Sun Jan 21 20:16:01 UTC 2018
2018-01-21 17:18 GMT+01:00 Cecil Westerhof <cldwesterhof at gmail.com>:
>
> I would like to change the CPUaffinity of a service at runtime. Is this
> possible?
>
If it is not possible with a systemd command, it can be done like this:
taskset -cp 3 21234
This set the CPUAffinity of process with pid 21234 to cpu3.
--
Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180121/6d7a5723/attachment.html>
More information about the systemd-devel
mailing list