mirror of https://github.com/mkerrisk/man-pages
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:
parent
c309dee7e1
commit
daf57a6ae0
|
@ -835,17 +835,21 @@ or 1, meaning that the cgroup (or one of its descendants)
|
||||||
contains member processes.
|
contains member processes.
|
||||||
.PP
|
.PP
|
||||||
The cgroups v2 release-notification mechanism
|
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
|
.IR release_agent
|
||||||
mechanism.
|
mechanism:
|
||||||
First, it allows for cheaper notification,
|
.IP * 3
|
||||||
|
It allows for cheaper notification,
|
||||||
since a single process can monitor multiple
|
since a single process can monitor multiple
|
||||||
.IR cgroup.events
|
.IR cgroup.events
|
||||||
files (using the techniques described earlier).
|
files (using the techniques described earlier).
|
||||||
By contrast, the cgroups v1 mechanism requires the creation
|
By contrast, the cgroups v1 mechanism requires the expense of creating
|
||||||
of a process for each notification.
|
a process for each notification.
|
||||||
Second, notification can be delegated to a process that lives inside
|
.IP *
|
||||||
a container associated with the newly empty cgroup.
|
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
|
.SS Cgroups v2 cgroup.stat file
|
||||||
.\" commit ec39225cca42c05ac36853d11d28f877fde5c42e
|
.\" commit ec39225cca42c05ac36853d11d28f877fde5c42e
|
||||||
|
|
Loading…
Reference in New Issue