Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs/cgroup: add entry for cgroup.kill

Give a brief overview of the cgroup.kill functionality.

Link: https://lore.kernel.org/r/20210503143922.3093755-2-brauner@kernel.org
Cc: Roman Gushchin <guro@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: cgroups@vger.kernel.org
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Christian Brauner and committed by
Tejun Heo
340272b0 661ee628

+15
+15
Documentation/admin-guide/cgroup-v2.rst
··· 952 952 it's possible to delete a frozen (and empty) cgroup, as well as 953 953 create new sub-cgroups. 954 954 955 + cgroup.kill 956 + A write-only single value file which exists in non-root cgroups. 957 + The only allowed value is "1". 958 + 959 + Writing "1" to the file causes the cgroup and all descendant cgroups to 960 + be killed. This means that all processes located in the affected cgroup 961 + tree will be killed via SIGKILL. 962 + 963 + Killing a cgroup tree will deal with concurrent forks appropriately and 964 + is protected against migrations. 965 + 966 + In a threaded cgroup, writing this file fails with EOPNOTSUPP as 967 + killing cgroups is a process directed operation, i.e. it affects 968 + the whole thread-group. 969 + 955 970 Controllers 956 971 =========== 957 972