diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-07-25 00:31:09 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-07-25 00:34:40 -0400 |
commit | 6aeea3ecc33b1f36dbc3b80461d15a7052ae424f (patch) | |
tree | bbd273e3e0ca76094aed8e9c77e5adfe2b07f779 /Documentation/cgroups | |
parent | 9844a5524ec532aee826c35e3031637c7fc8287b (diff) | |
parent | bdc0077af574800d24318b6945cf2344e8dbb050 (diff) |
Merge remote-tracking branch 'origin' into irqdomain/next
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 8e74980ab385..4a0b64c605fc 100644 --- a/Documentation/cgroups/cgroups.txt +++ b/Documentation/cgroups/cgroups.txt | |||
@@ -370,15 +370,12 @@ To mount a cgroup hierarchy with just the cpuset and memory | |||
370 | subsystems, type: | 370 | subsystems, type: |
371 | # mount -t cgroup -o cpuset,memory hier1 /sys/fs/cgroup/rg1 | 371 | # mount -t cgroup -o cpuset,memory hier1 /sys/fs/cgroup/rg1 |
372 | 372 | ||
373 | To change the set of subsystems bound to a mounted hierarchy, just | 373 | While remounting cgroups is currently supported, it is not recommend |
374 | remount with different options: | 374 | to use it. Remounting allows changing bound subsystems and |
375 | # mount -o remount,cpuset,blkio hier1 /sys/fs/cgroup/rg1 | 375 | release_agent. Rebinding is hardly useful as it only works when the |
376 | 376 | hierarchy is empty and release_agent itself should be replaced with | |
377 | Now memory is removed from the hierarchy and blkio is added. | 377 | conventional fsnotify. The support for remounting will be removed in |
378 | 378 | the future. | |
379 | Note this will add blkio to the hierarchy but won't remove memory or | ||
380 | cpuset, because the new options are appended to the old ones: | ||
381 | # mount -o remount,blkio /sys/fs/cgroup/rg1 | ||
382 | 379 | ||
383 | To Specify a hierarchy's release_agent: | 380 | To Specify a hierarchy's release_agent: |
384 | # mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \ | 381 | # mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \ |
@@ -637,16 +634,6 @@ void exit(struct task_struct *task) | |||
637 | 634 | ||
638 | Called during task exit. | 635 | Called during task exit. |
639 | 636 | ||
640 | int populate(struct cgroup *cgrp) | ||
641 | (cgroup_mutex held by caller) | ||
642 | |||
643 | Called after creation of a cgroup to allow a subsystem to populate | ||
644 | the cgroup directory with file entries. The subsystem should make | ||
645 | calls to cgroup_add_file() with objects of type cftype (see | ||
646 | include/linux/cgroup.h for details). Note that although this | ||
647 | method can return an error code, the error code is currently not | ||
648 | always handled well. | ||
649 | |||
650 | void post_clone(struct cgroup *cgrp) | 637 | void post_clone(struct cgroup *cgrp) |
651 | (cgroup_mutex held by caller) | 638 | (cgroup_mutex held by caller) |
652 | 639 | ||
@@ -656,7 +643,7 @@ example in cpusets, no task may attach before 'cpus' and 'mems' are set | |||
656 | up. | 643 | up. |
657 | 644 | ||
658 | void bind(struct cgroup *root) | 645 | void bind(struct cgroup *root) |
659 | (cgroup_mutex and ss->hierarchy_mutex held by caller) | 646 | (cgroup_mutex held by caller) |
660 | 647 | ||
661 | Called when a cgroup subsystem is rebound to a different hierarchy | 648 | Called when a cgroup subsystem is rebound to a different hierarchy |
662 | and root cgroup. Currently this will only involve movement between | 649 | and root cgroup. Currently this will only involve movement between |