[systemd-devel] systemd slice and PIDs under it

Bhasker C V bhasker at unixindia.com
Mon Nov 4 12:19:43 UTC 2019


Wow ! thanks
I am able to see memory throttled. Now for CPU and freezer controllers.

On 04/11/2019 11:17, Lennart Poettering wrote:
> On Mo, 04.11.19 11:13, Bhasker C V (bhasker at unixindia.com) wrote:
>
>> Hi all,
>>
>>  Does the PIDs running inside the systemd-nspawn slice inherit the
>> cgroup/slice properties ? I am running a systemd-nspawn container with 2
>> firefox instances (two separate ones) and also a lot of other processes
>> and I have given an option --property MemoryMax=10M. I can see that at
>> the top-level systemd-spawn is showing this ...
>>
>> (started as systemd-nspawn --machine bcv.test --capability=CAP_IPC_LOCK
>> -jbD /var/work/test/run --bind=/dev/net/tun --private-network
>> --network-bridge=virt  --bind /sys --bind-ro=/lib/modules/ --bind
> Ahum. You cannot do --bind=/sys. This is not supported and breaks
> cgroups (as cgroupfs is bind mounted below).
>
> Lennart
>
> --
> Lennart Poettering, Berlin


-- 
Bhasker C V
Secure Mails: http://keys.gnupg.net/pks/lookup?op=get&search=0x4D05FEEC54E47413
Registered Linux User: #306349 



More information about the systemd-devel mailing list