file-hierarchy: Document /sys/fs/cgroup
authorJosh Triplett <josh@joshtriplett.org>
Fri, 25 Feb 2022 20:40:45 +0000 (12:40 -0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Mar 2022 21:03:32 +0000 (21:03 +0000)
commit3dc6881d87ddf2451a8671a2c3d97642ca340ca4
treed69cfa21e0e10b4286a8d462b7e7b0e966329dad
parentd4dd289f821d29415f0057266da48f184a51bb1c
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)
man/file-hierarchy.xml