From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755766Ab1FOQTs (ORCPT ); Wed, 15 Jun 2011 12:19:48 -0400 Received: from mga01.intel.com ([192.55.52.88]:50524 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753704Ab1FOQTr (ORCPT ); Wed, 15 Jun 2011 12:19:47 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,370,1304319600"; d="scan'208";a="18555562" Date: Wed, 15 Jun 2011 09:18:27 -0700 From: Andi Kleen To: Peter Zijlstra Cc: Shaohua Li , Tim Chen , 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" Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex Message-ID: <20110615161827.GA11769@tassilo.jf.intel.com> References: <1308097798.17300.142.camel@schen9-DESK> <1308101214.15392.151.camel@sli10-conroe> <1308138750.15315.62.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1308138750.15315.62.camel@twins> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Good spot that certainly isn't plain .39. True. > > It looks like those (http://marc.info/?l=linux-mm&m=130533041726258) are > similar to Linus' patch, except Linus takes the hard line that the root One difference to Linus' patch is that it does batching for both fork+exit. I suspect Linus' patch could probably too. But the fork+exit patch only improved things slightly, it's very unlikely to recover 52%. Maybe the overall locking here needs to be revisited. And in general it looks like blind conversion from spinlock to mutex is a bad idea right now. -Andi