<div dir="ltr">Hi Colin,<div><br></div><div>Thank you for you detailed answer.</div><div><br></div><div>Best,</div><div>Armen</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><img src="https://docs.google.com/a/daqri.com/uc?id=0BwZwXlzgEEosMFMyVWt3bGUwbGc&export=download" width="96" height="15" style="font-family:arial,sans-serif;font-size:12.8px;color:rgb(34,34,34)"></div><div style="font-size:12.8px;color:rgb(0,0,0);font-family:calibri,sans-serif"><font size="2"><span style="color:rgb(102,102,102);font-family:arial,sans-serif">Armen Baloyan | Linux Engineering Lead</span><br></font></div><div style="font-size:12.8px;font-family:calibri,sans-serif"><div style="font-family:arial,sans-serif;line-height:normal"><br></div></div><div style="font-size:12.8px"></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Oct 18, 2017 at 1:49 AM, Colin Guthrie <span dir="ltr"><<a href="mailto:colin@mageia.org" target="_blank">colin@mageia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Armen Baloyan wrote on 18/10/17 02:21:<br>
<span class="">> Hi,<br>
><br>
> I need to restrict CPU usage for a process that runs in a service. The<br>
> service has over 10 processes running but I need to put restrictions<br>
> only on 1 of those processes.<br>
> Is it possible to move this process to a separate cgroup or it cannot be<br>
> removed its service's cgroup?<br>
<br>
</span>I don't think this is supported.<br>
<br>
Depending on how your "master" process works and communicates with it's<br>
10 processes, you may want to consider splitting your service out into<br>
separate systemd units. They can all be dependant on each other or,<br>
depending on your IPC mechanisms, you can use socket or bus activation.<br>
This then lets you have separate systemd units for each and apply<br>
whatever accounting and restrictions you may wish on each.<br>
<br>
HTHs<br>
<br>
Col<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
<br>
Colin Guthrie<br>
colin(at)<a href="http://mageia.org" rel="noreferrer" target="_blank">mageia.org</a><br>
<a href="http://colin.guthr.ie/" rel="noreferrer" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
Tribalogic Limited <a href="http://www.tribalogic.net/" rel="noreferrer" target="_blank">http://www.tribalogic.net/</a><br>
Open Source:<br>
Mageia Contributor <a href="http://www.mageia.org/" rel="noreferrer" target="_blank">http://www.mageia.org/</a><br>
PulseAudio Hacker <a href="http://www.pulseaudio.org/" rel="noreferrer" target="_blank">http://www.pulseaudio.org/</a><br>
Trac Hacker <a href="http://trac.edgewall.org/" rel="noreferrer" target="_blank">http://trac.edgewall.org/</a><br>
</font></span></blockquote></div><br></div>