Merge tag 'defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / Documentation / admin-guide / cgroup-v2.rst
index 4e59925..babbe04 100644 (file)
@@ -953,6 +953,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
 ===========
 
@@ -2041,6 +2056,17 @@ Cpuset Interface Files
        The value of "cpuset.mems" stays constant until the next update
        and won't be affected by any memory nodes hotplug events.
 
+       Setting a non-empty value to "cpuset.mems" causes memory of
+       tasks within the cgroup to be migrated to the designated nodes if
+       they are currently using memory outside of the designated nodes.
+
+       There is a cost for this memory migration.  The migration
+       may not be complete and some memory pages may be left behind.
+       So it is recommended that "cpuset.mems" should be set properly
+       before spawning new tasks into the cpuset.  Even if there is
+       a need to change "cpuset.mems" with active tasks, it shouldn't
+       be done frequently.
+
   cpuset.mems.effective
        A read-only multiple values file which exists on all
        cpuset-enabled cgroups.