diff options
author | 2009-06-30 11:41:36 -0700 | |
---|---|---|
committer | 2009-06-30 18:56:01 -0700 | |
commit | b37f2d4de6dfce4bfd6df311af80e4d61458ee1e (patch) | |
tree | 1d823c4f80e32dd7020212c60b08f9fa60ff3f9a /Documentation/cgroups | |
parent | mm: prevent balance_dirty_pages() from doing too much work (diff) | |
download | linux-b37f2d4de6dfce4bfd6df311af80e4d61458ee1e.tar.gz linux-b37f2d4de6dfce4bfd6df311af80e4d61458ee1e.tar.bz2 linux-b37f2d4de6dfce4bfd6df311af80e4d61458ee1e.zip |
cpusets: document adding/removing cpus to cpuset elaborately
By writing a tasks's pid to the file, a process adds that task to that
cgroup/cpuset. But to add a cpu/mem to a cpuset, the new list of cpus
should be written to the cpuset.mems file which would replace the old list
of cpus. Make this clearer in the documentation.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/cpusets.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/cgroups/cpusets.txt b/Documentation/cgroups/cpusets.txt index f9ca389dddf4..1d7e9784439a 100644 --- a/Documentation/cgroups/cpusets.txt +++ b/Documentation/cgroups/cpusets.txt @@ -777,6 +777,18 @@ in cpuset directories: # /bin/echo 1-4 > cpus -> set cpus list to cpus 1,2,3,4 # /bin/echo 1,2,3,4 > cpus -> set cpus list to cpus 1,2,3,4 +To add a CPU to a cpuset, write the new list of CPUs including the +CPU to be added. To add 6 to the above cpuset: + +# /bin/echo 1-4,6 > cpus -> set cpus list to cpus 1,2,3,4,6 + +Similarly to remove a CPU from a cpuset, write the new list of CPUs +without the CPU to be removed. + +To remove all the CPUs: + +# /bin/echo "" > cpus -> clear cpus list + 2.3 Setting flags ----------------- |