From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH 00/10] cgroups: Task counter subsystem v6 Date: Thu, 3 Nov 2011 15:35:46 -0200 Message-ID: <4EB2D0F2.40309@parallels.com> References: <1317668832-10784-1-git-send-email-fweisbec@gmail.com> <20111004150111.e9337268.akpm00@gmail.com> <20111028163021.1ce61f8a.akpm@linux-foundation.org> <20111103164917.GF8198@somewhere.redhat.com> <4EB2C852.6020706@parallels.com> <4EB2CA03.7030601@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Paul Menage Cc: Aditya Kali , Kay Sievers , Tim Hockin , Frederic Weisbecker , Containers , Johannes Weiner , LKML , Oleg Nesterov , Glauber Costa , Tejun Heo , Andrew Morton , Paul Turner List-Id: containers.vger.kernel.org On 11/03/2011 03:28 PM, Paul Menage wrote: > On Thu, Nov 3, 2011 at 10:06 AM, Glauber Costa wrote: >> Sorry if I wasn't clear: It removes the need to walk multiple independent >> hierarchies. The walk is done only once. > > You're talking about at fork time, and the concern is the cache > footprint involved in walking up the parent pointer chain? Yes, we can say this is my main concern. > Isn't that an argument against multiple hierarchies (which is a > decision for the admin), rather than against more subsystem > flexibility? Not always it is a decision for the admin. In most cases, it is a constraint of the problem. For containers - take lxc as an example, the most reasonable thing to do is to grab all cgroups subsystems available, and contain them. > If multiple subsystems on the same hierarchy each need to > walk up the pointer chain on the same event, then after the first > subsystem has done so the chain will be in cache for any subsequent > walks from other subsystems. No, it won't. Precisely because different subsystems have completely independent pointer chains.