diff --git a/man7/cgroups.7 b/man7/cgroups.7 index b6bc294f9..dd4fa5980 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -278,28 +278,6 @@ remove the corresponding directory pathname. Note that files in a cgroup directory cannot and need not be removed. .\" -.SS Release notification -A special file in each cgroup hierarchy, -.IR release_agent , -can be used to register a program to handle cgroups which become newly empty. -The program will be called each time a cgroup marked for -autoremove becomes empty and childless. -The cgroup path will be provided as the first command-line argument. -The cgroup must be marked as eligible for autoremove by writing '1' into its -.IR notify_on_release -file; -this value is inherited by newly created child cgroups. - -A new feature in cgroups v2 is the -.I cgroup.populated -file. -This reads 0 if there are no processes in the cgroup or its descendants, -and 1 otherwise. -It can be watched for changes using -.BR inotify (7). -This allows user-space applications to efficiently watch cgroups -for autoremove conditions. -.\" .SS Cgroups version 2 In cgroups v2, all mounted controllers reside in a single unified hierarchy. @@ -465,6 +443,28 @@ in a cgroup (and its descendants). Further information can be found in the kernel source file .IR Documentation/cgroup-v1/pids.txt . .\" +.SS Release notification +A special file in each cgroup hierarchy, +.IR release_agent , +can be used to register a program to handle cgroups which become newly empty. +The program will be called each time a cgroup marked for +autoremove becomes empty and childless. +The cgroup path will be provided as the first command-line argument. +The cgroup must be marked as eligible for autoremove by writing '1' into its +.IR notify_on_release +file; +this value is inherited by newly created child cgroups. + +A new feature in cgroups v2 is the +.I cgroup.populated +file. +This reads 0 if there are no processes in the cgroup or its descendants, +and 1 otherwise. +It can be watched for changes using +.BR inotify (7). +This allows user-space applications to efficiently watch cgroups +for autoremove conditions. +.\" .SS /proc files .TP .IR /proc/cgroups " (since Linux 2.6.24)"