From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 29DB36B0047 for ; Wed, 1 Sep 2010 03:56:10 -0400 (EDT) Date: Wed, 1 Sep 2010 16:52:38 +0900 From: Daisuke Nishimura Subject: Re: [PATCH 2/5] memcg: more use of css ID in memcg. Message-Id: <20100901165238.5086e67d.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <20100901154259.5b17bb87.kamezawa.hiroyu@jp.fujitsu.com> References: <20100901153951.bc82c021.kamezawa.hiroyu@jp.fujitsu.com> <20100901154259.5b17bb87.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "balbir@linux.vnet.ibm.com" , "linux-kernel@vger.kernel.org" , gthelen@google.com, Munehiro Ikeda , menage@google.com, "lizf@cn.fujitsu.com" , Daisuke Nishimura List-ID: On Wed, 1 Sep 2010 15:42:59 +0900 KAMEZAWA Hiroyuki wrote: > From: KAMEZAWA Hiroyuki > > Now, memory cgroup has an ID per cgroup and make use of it at > - hierarchy walk, > - swap recording. > > This patch is for making more use of it. The final purpose is > to replace page_cgroup->mem_cgroup's pointer to an unsigned short. > > This patch caches a pointer of memcg in an array. By this, we > don't have to call css_lookup() which requires radix-hash walk. > This saves some amount of memory footprint at lookup memcg via id. > > Changelog: 20100901 > - added unregster_memcg_id() and did some clean up. > - removed ->valid. > - fixed mem_cgroup_num counter handling. > > Changelog: 20100825 > - applied comments. > > Changelog: 20100811 > - adjusted onto mmotm-2010-08-11 > - fixed RCU related parts. > - use attach_id() callback. > > Changelog: 20100804 > - fixed description in init/Kconfig > > Changelog: 20100730 > - fixed rcu_read_unlock() placement. > > Signed-off-by: KAMEZAWA Hiroyuki Reviewed-by: Daisuke Nishimura -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org