Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752309Ab0ATMqt (ORCPT ); Wed, 20 Jan 2010 07:46:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751955Ab0ATMqt (ORCPT ); Wed, 20 Jan 2010 07:46:49 -0500 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:45268 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750739Ab0ATMqs (ORCPT ); Wed, 20 Jan 2010 07:46:48 -0500 Message-ID: <4B56FB33.2090408@linux.vnet.ibm.com> Date: Wed, 20 Jan 2010 18:16:43 +0530 From: Balbir Singh Reply-To: balbir@linux.vnet.ibm.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: KAMEZAWA Hiroyuki CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "nishimura@mxp.nes.nec.co.jp" , kirill@shutemov.name Subject: Re: [PATCH mmotm] memcg use generic percpu allocator instead of private one References: <20100120161825.15c372ac.kamezawa.hiroyu@jp.fujitsu.com> <4B56CEF0.2040406@linux.vnet.ibm.com> <20100120184707.ed99b540.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20100120184707.ed99b540.kamezawa.hiroyu@jp.fujitsu.com> X-Enigmail-Version: 1.0 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 Content-Length: 2167 Lines: 53 On Wednesday 20 January 2010 03:17 PM, KAMEZAWA Hiroyuki wrote: > On Wed, 20 Jan 2010 15:07:52 +0530 > Balbir Singh wrote: > >> On Wednesday 20 January 2010 12:48 PM, KAMEZAWA Hiroyuki wrote: >>> This patch is onto mmotm Jan/15. >>> = >>> From: KAMEZAWA Hiroyuki >>> >>> When per-cpu counter for memcg was implemneted, dynamic percpu allocator >>> was not very good. But now, we have good one and useful macros. >>> This patch replaces memcg's private percpu counter implementation with >>> generic dynamic percpu allocator and macros. >>> >>> The benefits are >>> - We can remove private implementation. >>> - The counters will be NUMA-aware. (Current one is not...) >>> - This patch reduces sizeof(struct mem_cgroup). Then, >>> struct mem_cgroup may be fit in page size on small config. >>> >>> By this, size of text is reduced. >>> [Before] >>> [kamezawa@bluextal mmotm-2.6.33-Jan15]$ size mm/memcontrol.o >>> text data bss dec hex filename >>> 24373 2528 4132 31033 7939 mm/memcontrol.o >>> [After] >>> [kamezawa@bluextal mmotm-2.6.33-Jan15]$ size mm/memcontrol.o >>> text data bss dec hex filename >>> 23913 2528 4132 30573 776d mm/memcontrol.o >>> >>> This includes no functional changes. >>> >>> Signed-off-by: KAMEZAWA Hiroyuki >> >> >> Before review, could you please post parallel pagefault data on a large >> system, since root now uses these per cpu counters and its overhead is >> now dependent on these counters. Also the data read from root cgroup is >> also dependent on these, could you make sure that is not broken. >> > No number difference before/after patch on my SMP quick test. > But I don't have NUMA. Could you test on NUMA ? > > I'll measure again tomorrow if I have machine time. I'll do the same as well if possible. Balbir -- 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/