[systemd-devel] Systemd and cgroups

Kevin Wilson wkevils at gmail.com
Thu Apr 11 08:23:43 PDT 2013


Thanks!
KV

On Thu, Apr 11, 2013 at 5:37 PM, Kay Sievers <kay at vrfy.org> wrote:
> On Thu, Apr 11, 2013 at 12:46 PM, Kevin Wilson <wkevils at gmail.com> wrote:
>> Hello,
>> This is a default fedore 18 machine with default kernel. Kernel came
>> with the F18 disto, no changes. No special things like LXC/OpenVZ. So
>> I guess no 3rd party mount any cgroup.
>>
>>>then systemd itself will mount all the resource controllers
>> that are compiled into the kernel.
>>
>> How ?
>> I don't know of an API to query from userspace which cgroups are built
>> in into the kernel. Is there such an API ?!
>
> /proc/cgroups
>
>> I will appreciate if someone will point where in systemd code this
>> mounting of all built in kernel cgroups controllers is done.
>>
>>
>> I suppose that systemd mount all controllers **without** name=systemd,
>> am I right ? because the name=systemd does not appear in any
>> controller except  /sys/fs/cgroup/systemd (see the initial post in
>> this thread).
>>
>> Is there a way to know whether a mount was done by systemd or not ?
>
> All that are found are mounted by PID1.
>
> Kay


More information about the systemd-devel mailing list