Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235177
b: refs/heads/master
c: bb6405e
h: refs/heads/master
i:
  235175: 63fd30e
v: v3
  • Loading branch information
Eric B Munson authored and Linus Torvalds committed Mar 16, 2011
1 parent 558934b commit 6c14224
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca3b78aa1672162f93de90cbf5051edea298a290
refs/heads/master: bb6405eab2a408c46949b3353ecfa1126caa3af2
12 changes: 12 additions & 0 deletions trunk/Documentation/cgroups/cgroups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ To mount a cgroup hierarchy with all available subsystems, type:
The "xxx" is not interpreted by the cgroup code, but will appear in
/proc/mounts so may be any useful identifying string that you like.

Note: Some subsystems do not work without some user input first. For instance,
if cpusets are enabled the user will have to populate the cpus and mems files
for each new cgroup created before that group can be used.

To mount a cgroup hierarchy with just the cpuset and memory
subsystems, type:
# mount -t cgroup -o cpuset,memory hier1 /dev/cgroup
Expand Down Expand Up @@ -426,6 +430,14 @@ You can attach the current shell task by echoing 0:

# echo 0 > tasks

Note: Since every task is always a member of exactly one cgroup in each
mounted hierarchy, to remove a task from its current cgroup you must
move it into a new cgroup (possibly the root cgroup) by writing to the
new cgroup's tasks file.

Note: If the ns cgroup is active, moving a process to another cgroup can
fail.

2.3 Mounting hierarchies by name
--------------------------------

Expand Down

0 comments on commit 6c14224

Please sign in to comment.