cgroups.7: Note other reasons why the hierarchy ID in /proc/cgroups may be 0

Reported-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-04-28 20:17:50 +02:00
parent fc5a79d886
commit 92bb6d3640
1 changed files with 11 additions and 3 deletions

View File

@ -454,7 +454,7 @@ Further information can be found in the kernel source file
.SS /proc files
.TP
.IR /proc/cgroups " (since Linux 2.6.24)"
This file contains information about the cgroups version 1 controllers
This file contains information about the controllers
that are available on the system.
An example of the contents of this file (reformatted for readability)
is the following:
@ -482,10 +482,18 @@ The fields in this file are, from left to right:
.IP 1. 3
The name of the controller.
.IP 2.
A unique ID for the cgroup hierarchy on which this controller is mounted.
If the controller is not currently mounted, the value in this field is 0.
The unique ID of the cgroup hierarchy on which this controller is mounted.
If multiple controllers are bound to the same hierarchy,
then each will show the same hierarchy ID in this field.
The value in this field will be 0 if:
.RS 5
.IP a) 3
the controller is not mounted on a cgroups v1 hierarchy;
.IP b)
the controller is bound to the cgroups v2 single unified hierarchy; or
.IP c)
the controller is disabled (see below).
.RE
.IP 3.
The number of control groups in this hierarchy using this controller.
.IP 4.