diff options
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 97a0d1a6a5ae..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" \ |