cgroups.7: A cgroup v1 controller can't be mounted against multiple hierarchies

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-10-07 13:52:19 +02:00
parent 15ce4b0cae
commit 31ec2a5cf7
1 changed files with 14 additions and 0 deletions

View File

@ -208,6 +208,20 @@ mount \-t cgroup \-o all cgroup /sys/fs/cgroup
.IR "\-o all" ,
since it is the default if no controllers are explicitly specified.)
It is not possible to mount the same controller
against multiple cgroup hierarchies.
For example, it is not possible to mount both the
.I cpu
and
.I cpuacct
controllers against one hierarchy, and to mount the
.I cpu
controller alone against another hierarchy.
It is possible to create multiple mount points with exactly
the same set of comounted controllers.
However, in this case all that results is multiple mount points
providing a view of the same hierarchy.
Note that on many systems, the v1 controllers are automatically mounted under
.IR /sys/fs/cgroup ;
in particular,