diff options
author | Christian Brauner <[email protected]> | 2021-05-08 14:15:39 +0200 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2021-05-10 10:41:10 -0400 |
commit | 340272b04036f2b833a7094eca5c15e5ed8e184c (patch) | |
tree | 91166c7cf6b41f1945296f726880e8d5d552dd9d | |
parent | 661ee6280931548f7b3b887ad26a157474ae5ac4 (diff) |
docs/cgroup: add entry for cgroup.kill
Give a brief overview of the cgroup.kill functionality.
Link: https://lore.kernel.org/r/[email protected]
Cc: Roman Gushchin <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: [email protected]
Reviewed-by: Shakeel Butt <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
-rw-r--r-- | Documentation/admin-guide/cgroup-v2.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index b1e81aa8598a..91cd601a1454 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -952,6 +952,21 @@ All cgroup core files are prefixed with "cgroup." it's possible to delete a frozen (and empty) cgroup, as well as create new sub-cgroups. + cgroup.kill + A write-only single value file which exists in non-root cgroups. + The only allowed value is "1". + + Writing "1" to the file causes the cgroup and all descendant cgroups to + be killed. This means that all processes located in the affected cgroup + tree will be killed via SIGKILL. + + Killing a cgroup tree will deal with concurrent forks appropriately and + is protected against migrations. + + In a threaded cgroup, writing this file fails with EOPNOTSUPP as + killing cgroups is a process directed operation, i.e. it affects + the whole thread-group. + Controllers =========== |