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