Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756002AbYKQBHG (ORCPT ); Sun, 16 Nov 2008 20:07:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753189AbYKQBGz (ORCPT ); Sun, 16 Nov 2008 20:06:55 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:56648 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751458AbYKQBGz (ORCPT ); Sun, 16 Nov 2008 20:06:55 -0500 Message-ID: <4920C395.1000208@cn.fujitsu.com> Date: Mon, 17 Nov 2008 09:06:29 +0800 From: Li Zefan User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Balbir Singh 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> In-Reply-To: <20081116081040.25166.65142.sendpatchset@balbir-laptop> 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 Content-Length: 998 Lines: 31 > +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. > +NOTE2: This feature can be enabled/disabled per subtree. > + > +7. TODO > > 1. Add support for accounting huge pages (as a separate controller) > 2. Make per-cgroup scanner reclaim not-shared pages first > _ > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/