cgroups.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-12-23 09:09:26 +01:00
parent 44c429ed45
commit 4769a77817
1 changed files with 20 additions and 4 deletions

View File

@ -367,7 +367,11 @@ A cgroup filesystem initially contains a single root cgroup, '/',
which all processes belong to. which all processes belong to.
A new cgroup is created by creating a directory in the cgroup filesystem: A new cgroup is created by creating a directory in the cgroup filesystem:
.PP .PP
mkdir /sys/fs/cgroup/cpu/cg1 .in +4n
.EX
mkdir /sys/fs/cgroup/cpu/cg1
.EE
.in
.PP .PP
This creates a new empty cgroup. This creates a new empty cgroup.
.PP .PP
@ -375,7 +379,11 @@ A process may be moved to this cgroup by writing its PID into the cgroup's
.I cgroup.procs .I cgroup.procs
file: file:
.PP .PP
echo $$ > /sys/fs/cgroup/cpu/cg1/cgroup.procs .in +4n
.EX
echo $$ > /sys/fs/cgroup/cpu/cg1/cgroup.procs
.EE
.in
.PP .PP
Only one PID at a time should be written to this file. Only one PID at a time should be written to this file.
.PP .PP
@ -514,7 +522,11 @@ The available controllers are automatically mounted,
meaning that it is not necessary (or possible) to specify the controllers meaning that it is not necessary (or possible) to specify the controllers
when mounting the cgroup v2 filesystem using a command such as the following: when mounting the cgroup v2 filesystem using a command such as the following:
.PP .PP
mount -t cgroup2 none /mnt/cgroup2 .in +4n
.EX
mount -t cgroup2 none /mnt/cgroup2
.EE
.in
.PP .PP
A cgroup v2 controller is available only if it is not currently in use A cgroup v2 controller is available only if it is not currently in use
via a mount against a cgroup v1 hierarchy. via a mount against a cgroup v1 hierarchy.
@ -715,7 +727,11 @@ For each cgroup hierarchy of which the process is a member,
there is one entry containing three there is one entry containing three
colon-separated fields of the form: colon-separated fields of the form:
.IP .IP
hierarchy-ID:controller-list:cgroup-path .in +4n
.EX
hierarchy-ID:controller-list:cgroup-path
.EE
.in
.IP .IP
For example: For example:
.IP .IP