From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753569AbYKFHZW (ORCPT ); Thu, 6 Nov 2008 02:25:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752797AbYKFHZI (ORCPT ); Thu, 6 Nov 2008 02:25:08 -0500 Received: from e28smtp06.in.ibm.com ([59.145.155.6]:33465 "EHLO e28smtp06.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbYKFHZG (ORCPT ); Thu, 6 Nov 2008 02:25:06 -0500 Message-ID: <4912951D.60301@linux.vnet.ibm.com> Date: Thu, 06 Nov 2008 12:26:29 +0530 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com Organization: IBM User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: KAMEZAWA Hiroyuki CC: linux-mm@kvack.org, YAMAMOTO Takashi , Paul Menage , lizf@cn.fujitsu.com, linux-kernel@vger.kernel.org, Nick Piggin , David Rientjes , Pavel Emelianov , Dhaval Giani , Andrew Morton Subject: Re: [mm] [PATCH 4/4] Memory cgroup hierarchy feature selector References: <20081101184812.2575.68112.sendpatchset@balbir-laptop> <20081101184902.2575.11443.sendpatchset@balbir-laptop> <20081102143817.99edca6d.kamezawa.hiroyu@jp.fujitsu.com> <490D42C7.4000301@linux.vnet.ibm.com> <20081102152412.2af29a1b.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20081102152412.2af29a1b.kamezawa.hiroyu@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KAMEZAWA Hiroyuki wrote: > On Sun, 02 Nov 2008 11:33:51 +0530 > Balbir Singh wrote: > >> KAMEZAWA Hiroyuki wrote: >>> On Sun, 02 Nov 2008 00:19:02 +0530 >>> Balbir Singh wrote: >>> >>>> Don't enable multiple hierarchy support by default. This patch introduces >>>> a features element that can be set to enable the nested depth hierarchy >>>> feature. This feature can only be enabled when there is just one cgroup >>>> (the root cgroup). >>>> >>> Why the flag is for the whole system ? >>> flag-per-subtree is of no use ? >> Flag per subtree might not be useful, since we charge all the way up to root, > Ah, what I said is "How about enabling/disabling hierarhcy support per subtree ?" > Sorry for bad text. > > like this. > - you can set hierarchy mode of a cgroup turned on/off when... > * you don't have any tasks under it && it doesn't have any child cgroup. I see.. the presence of tasks don't matter, since the root cgroup will always have tasks. Presence of child groups does matter. -- Balbir