mirror of https://github.com/mkerrisk/man-pages
cgroups.7: Add a section on unmounting cgroup v1 filesystems
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
783a40b677
commit
7409b54bdd
|
@ -231,6 +231,28 @@ in particular,
|
|||
.BR systemd (1)
|
||||
automatically creates such mount points.
|
||||
.\"
|
||||
.SS Unmounting v1 controllers
|
||||
A mounted cgroup filesystem can be unmounted using the
|
||||
.BR umount (8)
|
||||
command, as in the following example:
|
||||
.PP
|
||||
.in +4n
|
||||
.EX
|
||||
umount /sys/fs/cgroup/pids
|
||||
.EE
|
||||
.in
|
||||
.PP
|
||||
.IR "But note well" :
|
||||
a cgroup filesystem is unmounted only if it is not busy,
|
||||
that is, it has no child cgroups.
|
||||
If this is not the case, then the only effect of the
|
||||
.BR umount (8)
|
||||
is to make the mount invisible.
|
||||
Thus, to ensure that the mount point is really removed,
|
||||
one must first remove all child cgroups,
|
||||
which in turn can be done only after all member processes
|
||||
have been moved from those cgroups to the root cgroup.
|
||||
.\"
|
||||
.SS Cgroups version 1 controllers
|
||||
Each of the cgroups version 1 controllers is governed
|
||||
by a kernel configuration option (listed below).
|
||||
|
|
Loading…
Reference in New Issue