aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups/cgroups.txt
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-07-25 00:31:09 -0400
committerGrant Likely <grant.likely@secretlab.ca>2012-07-25 00:34:40 -0400
commit6aeea3ecc33b1f36dbc3b80461d15a7052ae424f (patch)
treebbd273e3e0ca76094aed8e9c77e5adfe2b07f779 /Documentation/cgroups/cgroups.txt
parent9844a5524ec532aee826c35e3031637c7fc8287b (diff)
parentbdc0077af574800d24318b6945cf2344e8dbb050 (diff)
Merge remote-tracking branch 'origin' into irqdomain/next
Diffstat (limited to 'Documentation/cgroups/cgroups.txt')
-rw-r--r--Documentation/cgroups/cgroups.txt27
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
370subsystems, type: 370subsystems, 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
373To change the set of subsystems bound to a mounted hierarchy, just 373While remounting cgroups is currently supported, it is not recommend
374remount with different options: 374to use it. Remounting allows changing bound subsystems and
375# mount -o remount,cpuset,blkio hier1 /sys/fs/cgroup/rg1 375release_agent. Rebinding is hardly useful as it only works when the
376 376hierarchy is empty and release_agent itself should be replaced with
377Now memory is removed from the hierarchy and blkio is added. 377conventional fsnotify. The support for remounting will be removed in
378 378the future.
379Note this will add blkio to the hierarchy but won't remove memory or
380cpuset, because the new options are appended to the old ones:
381# mount -o remount,blkio /sys/fs/cgroup/rg1
382 379
383To Specify a hierarchy's release_agent: 380To 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
638Called during task exit. 635Called during task exit.
639 636
640int populate(struct cgroup *cgrp)
641(cgroup_mutex held by caller)
642
643Called after creation of a cgroup to allow a subsystem to populate
644the cgroup directory with file entries. The subsystem should make
645calls to cgroup_add_file() with objects of type cftype (see
646include/linux/cgroup.h for details). Note that although this
647method can return an error code, the error code is currently not
648always handled well.
649
650void post_clone(struct cgroup *cgrp) 637void 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
656up. 643up.
657 644
658void bind(struct cgroup *root) 645void bind(struct cgroup *root)
659(cgroup_mutex and ss->hierarchy_mutex held by caller) 646(cgroup_mutex held by caller)
660 647
661Called when a cgroup subsystem is rebound to a different hierarchy 648Called when a cgroup subsystem is rebound to a different hierarchy
662and root cgroup. Currently this will only involve movement between 649and root cgroup. Currently this will only involve movement between