[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D78E3EB.8080207@librato.com>
Date: Thu, 10 Mar 2011 09:44:59 -0500
From: Mike Heffner <mike@...rato.com>
To: Paul Menage <menage@...gle.com>
CC: Eric B Munson <emunson@...bm.net>, linux-kernel@...r.kernel.org,
containers@...ts.linux-foundation.org, rdunlap@...otime.net,
linux-doc@...r.kernel.org
Subject: Re: [PATCH] Documentation: cgroups: Add notes on removing PIDs from
tasks and cgroups requiring setup
On 03/09/2011 06:13 PM, Paul Menage wrote:
> On Wed, Mar 9, 2011 at 1:09 PM, Eric B Munson<emunson@...bm.net> 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.
If we are updating this documentation, can we include a blurb that
mentions if the 'ns' cgroup is mounted in the hierarchy, moving a
process to a new cgroup can fail?
Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists