lkml.org 
[lkml]   [2011]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] Documentation: cgroups: Add notes on removing PIDs from tasks and cgroups requiring setup
    On Wed, Mar 9, 2011 at 1:09 PM, Eric B Munson <emunson@mgebm.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.

    Paul


    \
     
     \ /
      Last update: 2011-03-10 00:17    [W:0.022 / U:30.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site