<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2018-01-21 17:18 GMT+01:00 Cecil Westerhof <span dir="ltr"><<a href="mailto:cldwesterhof@gmail.com" target="_blank">cldwesterhof@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div dir="ltr"><div style="font-family:courier new,monospace">I would like to change the CPUaffinity of a service at runtime. Is this possible?<span class="gmail-HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="gmail-HOEnZb"></span></div></blockquote></div><br><div style="font-family:courier new,monospace" class="gmail_default">​If it is not possible with a systemd command, it can be done like this:<br>    taskset -cp 3 21234​</div><br><div style="font-family:courier new,monospace" class="gmail_default">​This set the CPUAffinity of process with pid 21234 to cpu3.​</div><br>-- <br><div class="gmail_signature">Cecil Westerhof</div>
</div></div>