Re: [PATCH] Documentation: cgroups: Add notes on removing PIDsfrom tasks and cgroups requiring setup
From: Eric B Munson
Date: Thu Mar 10 2011 - 11:59:23 EST
On Wed, 09 Mar 2011, Paul Menage wrote:
> On Wed, Mar 9, 2011 at 1:09 PM, Eric B Munson <emunson@xxxxxxxxx> wrote:
> >
> > +Note: To remove a task from a cgroup you must write its PID to the root
> > +tasks file.
> > +
>
> This isn't really accurate - the root cgroup is a cgroup like all the
> others. More accurate would be something like:
>
> Since every task is always a member of exactly one cgroup in each
> mounted hierarchy, to remove a task from its current cgroup you must
> move it into a new cgroup (possibly the root cgroup) by writing to the
> new cgroup's tasks file.
>
> Paul
>
I am going to lift that for V2.
Attachment:
signature.asc
Description: Digital signature