From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivek Goyal Subject: Re: [RFC] cgroup TODOs Date: Tue, 18 Sep 2012 14:08:57 -0400 Message-ID: <20120918180857.GG16965@redhat.com> References: <20120913205827.GO7677@google.com> <20120914142539.GC6221@redhat.com> <1347634409.7172.58.camel@twins> <20120914151447.GD6221@redhat.com> <20120914215701.GW17747@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20120914215701.GW17747-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Peter Zijlstra Cc: Neil Horman , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Serge Hallyn , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Hocko , Thomas Graf , Paul Mackerras , "Aneesh Kumar K.V" , Arnaldo Carvalho de Melo , Johannes Weiner , Tejun Heo , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Paul Turner , Ingo Molnar List-Id: containers.vger.kernel.org On Fri, Sep 14, 2012 at 02:57:01PM -0700, Tejun Heo wrote: [..] > I think we need to stick to one model for all controllers; otherwise, > it gets confusing and unified hierarchy can't work. That said, I'm > not too happy about how cpu is handling it now. > > * As I wrote before, the configuration esacpes cgroup proper and the > mapping from per-task value to group weight is essentially > arbitrary and may not exist depending on the resource type. > > * The proportion of each group fluctuates as tasks fork and exit in > the parent group, which is confusing. > > * cpu deals with tasks but blkcg deals with iocontexts and memcg, > which currently doesn't implement proportional control, deals with > address spaces (processes). The proportions wouldn't even fluctuate > the same way across different controllers. > > So, I really don't think the current model used by cpu is a good one > and we rather should treat the tasks as a group competing with the > rest of child groups. Whether we can change that at this point, I > don't know. Peter, what do you think? Peter, do you have thoughts on this? I vaguely remember that similar discussion had happened for cpu controller. We first need to settle this debate of treating tasks at same level as groups before further design points can be discussed. Thanks Vivek