mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
file-hierarchy: Document /sys/fs/cgroup
file-hierarchy does not mention anything about the expected mountpoint for cgroups. This may lead some software to believe it will need to search for it (e.g. by scanning mountinfo) rather than just looking in the canonical location. Document the canonical mountpoint as /sys/fs/cgroup. Also provide information on the non-default configurations, but make it clear that in such configurations if cgroup2 is mounted (hybrid mode) it won't have resource controllers attached. This will help software know if it should fall back to /sys/fs/cgroup/unified or just ignore that case. (cherry picked from commit c8aeb9d672fac7ac2d1e350431b7b4e734b90a5d)
This commit is contained in:
parent
d4dd289f82
commit
3dc6881d87
@ -420,6 +420,25 @@
|
||||
this directory.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><filename>/sys/fs/cgroup/</filename></term>
|
||||
<listitem><para>A virtual kernel file system exposing process
|
||||
control groups (cgroups). This file system is an API to interface
|
||||
with the kernel and not a place where normal files may be stored. On
|
||||
current systems running in the default "unified" mode,
|
||||
this directory serves as the mount point for the
|
||||
<literal>cgroup2</literal> filesystem, which provides a unified
|
||||
cgroup hierarchy for all resource controllers. On systems with
|
||||
non-default configurations, this directory may instead be a tmpfs
|
||||
filesystem containing mount points for various
|
||||
<literal>cgroup</literal> (v1) resource controllers; in such
|
||||
configurations, if <literal>cgroup2</literal> is mounted it will be
|
||||
mounted on <filename>/sys/fs/cgroup/unified/</filename>, but
|
||||
cgroup2 will not have resource controllers attached. In
|
||||
sandboxed/containerized setups, this directory may either not exist or
|
||||
may include a subset of functionality.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user