From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Subject: Re: inux-next: Tree for Apr 27 (uml + mm/memcontrol.c) Date: Fri, 04 May 2012 23:59:02 +0530 Message-ID: <877gwryf4h.fsf@skywalker.in.ibm.com> References: <20120427161146.95422142968526faaff615d4@canb.auug.org.au> <4F9ABF9C.2070707@xenotime.net> <20120427132343.fbb443b9.akpm@linux-foundation.org> <20120427143646.8209627e.akpm@linux-foundation.org> <87fwbnag6u.fsf@skywalker.in.ibm.com> User-Agent: Notmuch/0.11.1+346~g13d19c3 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from e28smtp07.in.ibm.com ([122.248.162.7]:54240 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752730Ab2EDS3P (ORCPT ); Fri, 4 May 2012 14:29:15 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 May 2012 23:59:12 +0530 In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: David Rientjes , Hiroyuki Kamezawa Cc: Andrew Morton , Randy Dunlap , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Weinberger , KAMEZAWA Hiroyuki David Rientjes writes: >> Is this a claim that memory-intensive workloads will have the exact same >> performance with and without memcg enabled? > I've just run specjbb2005 three times on my system both with and without > cgroup_disable=memory on the command line and it is consistently 1% faster > without memcg. If I add XX:+UseLargePages to the command line to use > hugepages it's even larger. So why must I incur this performance > degradation if I simply want to control who may mmap hugepages out of the > global pool? Even if we end up having a seperate controller for hugetlb, we would need some bits of memcg, like tracking page cgroup, moving page cgroup on page offline. We will also be duplicating some amount of framework for supporting cgroup removal etc, because all those code deal with struct page (actually compound page ) -aneesh