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>
Thu, 10 Mar 2022 12:54:30 +0000 (12:54 +0000)
commit8e6783cd361fa215526924b4748df6d05a872e0e
tree7d9c72204eada05f5666e22e1638737ce8d9ca29
parent885461ccad290ca2826a98817da1347145499a8a
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)
(cherry picked from commit 3dc6881d87ddf2451a8671a2c3d97642ca340ca4)
man/file-hierarchy.xml