From 4769a77817d01228cd56579d95759d138f5b40aa Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 23 Dec 2017 09:09:26 +0100 Subject: [PATCH] cgroups.7: ffix Signed-off-by: Michael Kerrisk --- man7/cgroups.7 | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/man7/cgroups.7 b/man7/cgroups.7 index 4402926b1..a958eaab0 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -367,7 +367,11 @@ A cgroup filesystem initially contains a single root cgroup, '/', which all processes belong to. A new cgroup is created by creating a directory in the cgroup filesystem: .PP - mkdir /sys/fs/cgroup/cpu/cg1 +.in +4n +.EX +mkdir /sys/fs/cgroup/cpu/cg1 +.EE +.in .PP This creates a new empty cgroup. .PP @@ -375,7 +379,11 @@ A process may be moved to this cgroup by writing its PID into the cgroup's .I cgroup.procs file: .PP - echo $$ > /sys/fs/cgroup/cpu/cg1/cgroup.procs +.in +4n +.EX +echo $$ > /sys/fs/cgroup/cpu/cg1/cgroup.procs +.EE +.in .PP Only one PID at a time should be written to this file. .PP @@ -514,7 +522,11 @@ The available controllers are automatically mounted, 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: .PP - mount -t cgroup2 none /mnt/cgroup2 +.in +4n +.EX +mount -t cgroup2 none /mnt/cgroup2 +.EE +.in .PP A cgroup v2 controller is available only if it is not currently in use 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 colon-separated fields of the form: .IP - hierarchy-ID:controller-list:cgroup-path +.in +4n +.EX +hierarchy-ID:controller-list:cgroup-path +.EE +.in .IP For example: .IP