From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [RFC] cgroup TODOs Date: Mon, 17 Sep 2012 12:55:04 +0400 Message-ID: <5056E568.7070305@parallels.com> References: <20120913205827.GO7677@google.com> <20120914142539.GC6221@redhat.com> <1347634409.7172.58.camel@twins> <20120914151447.GD6221@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120914151447.GD6221-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Id: 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: Vivek Goyal 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 On 09/14/2012 07:14 PM, Vivek Goyal wrote: > Those who really need to implement % model, they will have to do heavy > lifting in user space. I am skeptical that will take off but kernel > does not prohibit from somebody creating a group, moving all tasks > there and making sure tasks and groups are not at same level hence > % becomes more predictable. Just that, that's not the default from > kernel. I subscribe to that. I use a % model for memory / kernel memory (Give kernel 20 % of userspace memory), but the kernel never knows about it. It only understand megabytes. Of course this is simpler, because it is all inside the same cgroup. But if you want global %'s you need to calculate it from everybody *anyway*, be it in the kernel or in userspace.