From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by kanga.kvack.org (Postfix) with ESMTP id 5E6816B0012 for ; Fri, 17 Jun 2011 15:42:06 -0400 (EDT) Date: Fri, 17 Jun 2011 12:40:29 -0700 From: Andi Kleen Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex Message-ID: <20110617194029.GA28954@tassilo.jf.intel.com> References: <1308173849.15315.91.camel@twins> <1308255972.17300.450.camel@schen9-DESK> <1308310080.2355.19.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Peter Zijlstra , Tim Chen , Shaohua Li , Andrew Morton , 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 Fri, Jun 17, 2011 at 09:46:00AM -0700, Linus Torvalds wrote: > On Fri, Jun 17, 2011 at 4:28 AM, Peter Zijlstra wrote: > > > > Something like so? Compiles and runs the benchmark in question. > > Oh, and can you do this with a commit log and sign-off, and I'll put > it in my "anon_vma-locking" branch that I have. I'm not going to > actually merge that branch into mainline until I've seen a few more > acks or more testing by Tim. > > But if Tim's numbers hold up (-32% to +15% performance by just the > first one, and +15% isn't actually an improvement since tmpfs > read-ahead should have gotten us to +66%), I think we have to do this > just to avoid the performance regression. You could also add the mutex "optimize caching protocol" patch I posted earlier to that branch. It didn't actually improve Tim's throughput number, but it made the CPU consumption of the mutex go down. -Andi ---