Messages in this thread | | | Date | Wed, 17 Jun 2009 02:42:58 -0700 | Subject | Re: cpusets: document adding/removing cpus to cpuset elaborately | From | Paul Menage <> |
| |
On Tue, Jun 16, 2009 at 5:45 PM, Li Zefan<lizf@cn.fujitsu.com> wrote: > Nikanth Karthikesan wrote: >> Writing a pid to the file, tasks 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. >> > > Though I think '>' already means overwrite so removing/adding cpus should > always writing the full list of CPUs to 'cpus'
But in the context of cgroups/cpusets that's not always the case - think of the "tasks" file.
> > Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Paul
| |