aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups/cgroups.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups/cgroups.txt')
-rw-r--r--Documentation/cgroups/cgroups.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt
index 44b8b7af8019..cbdfb7d9455b 100644
--- a/Documentation/cgroups/cgroups.txt
+++ b/Documentation/cgroups/cgroups.txt
@@ -349,6 +349,10 @@ To mount a cgroup hierarchy with all available subsystems, type:
349The "xxx" is not interpreted by the cgroup code, but will appear in 349The "xxx" is not interpreted by the cgroup code, but will appear in
350/proc/mounts so may be any useful identifying string that you like. 350/proc/mounts so may be any useful identifying string that you like.
351 351
352Note: Some subsystems do not work without some user input first. For instance,
353if cpusets are enabled the user will have to populate the cpus and mems files
354for each new cgroup created before that group can be used.
355
352To mount a cgroup hierarchy with just the cpuset and memory 356To mount a cgroup hierarchy with just the cpuset and memory
353subsystems, type: 357subsystems, type:
354# mount -t cgroup -o cpuset,memory hier1 /dev/cgroup 358# mount -t cgroup -o cpuset,memory hier1 /dev/cgroup
@@ -426,6 +430,14 @@ You can attach the current shell task by echoing 0:
426 430
427# echo 0 > tasks 431# echo 0 > tasks
428 432
433Note: Since every task is always a member of exactly one cgroup in each
434mounted hierarchy, to remove a task from its current cgroup you must
435move it into a new cgroup (possibly the root cgroup) by writing to the
436new cgroup's tasks file.
437
438Note: If the ns cgroup is active, moving a process to another cgroup can
439fail.
440
4292.3 Mounting hierarchies by name 4412.3 Mounting hierarchies by name
430-------------------------------- 442--------------------------------
431 443