Re: [RFC PATCH v2 09/17] cgroup: Keep accurate count of tasks in each css_set

2017-05-18 Thread Waiman Long
On 05/17/2017 05:40 PM, Tejun Heo wrote: > Hello, > > On Mon, May 15, 2017 at 09:34:08AM -0400, Waiman Long wrote: >> The reference count in the css_set data structure was used as a >> proxy of the number of tasks attached to that css_set. However, that >> count is actually not an accurate measure

Re: [RFC PATCH v2 09/17] cgroup: Keep accurate count of tasks in each css_set

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:34:08AM -0400, Waiman Long wrote: > The reference count in the css_set data structure was used as a > proxy of the number of tasks attached to that css_set. However, that > count is actually not an accurate measure especially with thread mode > support. So a new v

[RFC PATCH v2 09/17] cgroup: Keep accurate count of tasks in each css_set

2017-05-15 Thread Waiman Long
The reference count in the css_set data structure was used as a proxy of the number of tasks attached to that css_set. However, that count is actually not an accurate measure especially with thread mode support. So a new variable task_count is added to the css_set to keep track of the actual task c