diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2018-01-09 20:35:17 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2018-01-10 00:35:47 +0100 |
| commit | 56769384da262e9fee096795427edb1df033f570 (patch) | |
| tree | e0758951c03b1816d773d9302444573a743466e0 /man7/cgroups.7 | |
| parent | 980f1827b02a3845c738e7eb4e7c9154be9470f6 (diff) | |
| download | man-pages-56769384da262e9fee096795427edb1df033f570.tar.gz | |
cgroups.7: Rework text on threads and cgroups v2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/cgroups.7')
| -rw-r--r-- | man7/cgroups.7 | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/man7/cgroups.7 b/man7/cgroups.7 index c5ba9d7326..120750a538 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -146,13 +146,13 @@ In this view, a process can consist of multiple tasks and called such in the remainder of this man page). In cgroups v1, it is possible to independently manipulate the cgroup memberships of the threads in a process. -Because this ability caused certain problems, +Because splitting threads across different cgroups +caused problems in some cases, .\" FIXME Add some text describing why this was a problem. the ability to independently manipulate the cgroup memberships -of the threads in a process has been removed in cgroups v2. -Cgroups v2 allows manipulation of cgroup membership only for processes -(which has the effect of changing the cgroup membership of -all threads in the process). +of the threads in a process was removed in the initial cgroups v2 +implementation, and subsequently restored in a more limited form +(see the discussion of "thread mode" below). .\" .SS Mounting v1 controllers The use of cgroups requires a kernel built with the @@ -431,7 +431,7 @@ The returned list of PIDs is not guaranteed to be in order. Nor is it guaranteed to be free of duplicates. (For example, a PID may be recycled while reading from the list.) .PP -In cgroups v1 (but not cgroups v2), an individual thread can be moved to +In cgroups v1, an individual thread can be moved to another cgroup by writing its thread ID (i.e., the kernel thread ID returned by .BR clone (2) @@ -442,7 +442,6 @@ to the file in a cgroup directory. This file can be read to discover the set of threads that are members of the cgroup. -This file is not present in cgroup v2 directories. .\" .SS Removing cgroups To remove a cgroup, |
