diff --git a/man7/cgroup_namespaces.7 b/man7/cgroup_namespaces.7 index 135e5d7bd..72a473cf6 100644 --- a/man7/cgroup_namespaces.7 +++ b/man7/cgroup_namespaces.7 @@ -67,9 +67,24 @@ entries for each ancestor level in the cgroup hierarchy. .PP The following shell session demonstrates the effect of creating a new cgroup namespace. +.PP First, (as superuser) we create a child cgroup in the .I freezer -hierarchy, and put the shell into that cgroup: +hierarchy, and place a process in that cgroup that we will +use as part of the demonstration below: +.PP +.in +4n +.EX +# \fBmkdir \-p /sys/fs/cgroup/freezer/sub2\fP +# \fBsleep 10000 &\fP # Create a process that lives for a while +[1] 20124 +# \fBecho 20124 > /sys/fs/cgroup/freezer/sub2/cgroup.procs\fP +.EE +.in +.PP +We then create another child cgroup in the +.I freezer +hierarchy and put the shell into that cgroup: .PP .in +4n .EX @@ -98,7 +113,7 @@ files of, respectively, the new shell process started by the .BR unshare (1) command, a process that is in the original cgroup namespace .RI ( init , -with PID 1), and a process in a sibling cgroup +with PID 1), and the process in the sibling cgroup .RI ( sub2 ): .PP .EX