From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756270AbYKQDnT (ORCPT ); Sun, 16 Nov 2008 22:43:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755642AbYKQDnE (ORCPT ); Sun, 16 Nov 2008 22:43:04 -0500 Received: from E23SMTP02.au.ibm.com ([202.81.18.163]:60832 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755490AbYKQDnC (ORCPT ); Sun, 16 Nov 2008 22:43:02 -0500 Message-ID: <4920E70C.3020507@linux.vnet.ibm.com> Date: Mon, 17 Nov 2008 09:07:48 +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: Li Zefan CC: linux-mm@kvack.org, YAMAMOTO Takashi , Paul Menage , linux-kernel@vger.kernel.org, Nick Piggin , David Rientjes , Pavel Emelianov , Dhaval Giani , Andrew Morton , KAMEZAWA Hiroyuki Subject: Re: [mm] [PATCH 1/4] Memory cgroup hierarchy documentation (v4) References: <20081116081034.25166.7586.sendpatchset@balbir-laptop> <20081116081040.25166.65142.sendpatchset@balbir-laptop> <4920C395.1000208@cn.fujitsu.com> In-Reply-To: <4920C395.1000208@cn.fujitsu.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Li Zefan wrote: >> +6.1 Enabling hierarchical accounting and reclaim >> + >> +The memory controller by default disables the hierarchy feature. Support >> +can be enabled by writing 1 to memory.use_hierarchy file of the root cgroup >> + >> +# echo 1 > memory.use_hierarchy >> + >> +The feature can be disabled by >> + >> +# echo 0 > memory.use_hierarchy >> + >> +NOTE1: Enabling/disabling will fail if the cgroup already has other >> +cgroups created below it. >> + > > It's better to also document that it will fail if it's parent's use_hierarchy > is already enabled. > Good point, will update the documentation. -- Balbir