[systemd-devel] Systemd and cgroups

Kay Sievers kay at vrfy.org
Thu Apr 11 07:37:35 PDT 2013


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