From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 99F6F6B0012 for ; Wed, 15 Jun 2011 21:07:57 -0400 (EDT) Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Tim Chen In-Reply-To: <1308173849.15315.91.camel@twins> References: <1308097798.17300.142.camel@schen9-DESK> <1308101214.15392.151.camel@sli10-conroe> <1308138750.15315.62.camel@twins> <20110615161827.GA11769@tassilo.jf.intel.com> <1308156337.2171.23.camel@laptop> <1308163398.17300.147.camel@schen9-DESK> <1308169937.15315.88.camel@twins> <4DF91CB9.5080504@linux.intel.com> <1308172336.17300.177.camel@schen9-DESK> <1308173849.15315.91.camel@twins> Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Jun 2011 18:08:28 -0700 Message-ID: <1308186508.17300.423.camel@schen9-DESK> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Andi Kleen , Shaohua Li , Andrew Morton , Linus Torvalds , Hugh Dickins , KOSAKI Motohiro , Benjamin Herrenschmidt , David Miller , Martin Schwidefsky , Russell King , Paul Mundt , Jeff Dike , Richard Weinberger , "Luck, Tony" , KAMEZAWA Hiroyuki , Mel Gorman , Nick Piggin , Namhyung Kim , "Shi, Alex" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "Rafael J. Wysocki" On Wed, 2011-06-15 at 23:37 +0200, Peter Zijlstra wrote: > On Wed, 2011-06-15 at 14:12 -0700, Tim Chen wrote: > > Thanks to Andi for providing the info. We've used this workaround in > > our testing so it will not mask true kernel scaling bottlenecks. > > > http://programming.kicks-ass.net/sekrit/39-2.txt.bz2 > http://programming.kicks-ass.net/sekrit/tip-2.txt.bz2 > > tip+sirq+linus is still slightly faster than .39 here, although removing > that sysconf() wreckage closed the gap considerably (needing to know the > number of cpus to optimize locking sounds like a trainwreck all of its > own, needing it _that_ often instead of just once at startup is even > worse). > Peter, Fengguang's readahead fixes for tmpfs removed another bottleneck before anon_vma->lock become dominant. https://lkml.org/lkml/2011/4/26/143) We've found this issue when we were testing exim earlier. It was merged in 3.0-rc2 but not in plain 2.6.39. So with this patch on 2.6.39 we should get better comparison with 3.0-rc2. Thanks. Tim -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org