lkml.org 
[lkml]   [2012]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFD] Merge task counter into memcg
On 04/11/2012 10:07 PM, Johannes Weiner wrote:
> You could also twist this around and argue the same for cpu usage and
> make it part of the cpu cgroup, but it doesn't really fit in either
> subsystem, IMO.
I myself really prefer this in the cpu controller.
Besides the bytes vs objects things, Whenever you create a process, at
some point it will end up in the runqueues to be scheduled. It is a
natural point of accounting.

Either that, or making it a core feature of cgroups, like limiting the
number of processes in the tasks file (just have to find a natural way
to make it hierarchical). It will make more and more sense as people
seem to be favoring single hierarchies these days. (granted, not a
settled discussion, so your views may vary)




\
 
 \ /
  Last update: 2012-04-12 04:21    [W:2.685 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site