cgroups.7: Improve the discussion of the advantages of v2 release notification

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-11-29 13:37:30 +01:00
parent c309dee7e1
commit daf57a6ae0
1 changed files with 11 additions and 7 deletions

View File

@ -835,17 +835,21 @@ or 1, meaning that the cgroup (or one of its descendants)
contains member processes.
.PP
The cgroups v2 release-notification mechanism
offers at least two advantages over the cgroups v1
offers the following advantages over the cgroups v1
.IR release_agent
mechanism.
First, it allows for cheaper notification,
mechanism:
.IP * 3
It allows for cheaper notification,
since a single process can monitor multiple
.IR cgroup.events
files (using the techniques described earlier).
By contrast, the cgroups v1 mechanism requires the creation
of a process for each notification.
Second, notification can be delegated to a process that lives inside
a container associated with the newly empty cgroup.
By contrast, the cgroups v1 mechanism requires the expense of creating
a process for each notification.
.IP *
Notification for different cgroup subhierarchies can be delegated
to different processes.
By contrast, the cgroups v1 mechanism allows only one release agent
for an entire hierarchy.
.\"
.SS Cgroups v2 cgroup.stat file
.\" commit ec39225cca42c05ac36853d11d28f877fde5c42e