Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520Ab1FOLxv (ORCPT ); Wed, 15 Jun 2011 07:53:51 -0400 Received: from casper.infradead.org ([85.118.1.10]:35072 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904Ab1FOLxt convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2011 07:53:49 -0400 Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Peter Zijlstra To: Shaohua Li Cc: 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 , "ak@linux.intel.com" , "Shi, Alex" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "Rafael J. Wysocki" In-Reply-To: <1308101214.15392.151.camel@sli10-conroe> References: <1308097798.17300.142.camel@schen9-DESK> <1308101214.15392.151.camel@sli10-conroe> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Wed, 15 Jun 2011 13:52:30 +0200 Message-ID: <1308138750.15315.62.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 32 On Wed, 2011-06-15 at 09:26 +0800, Shaohua Li wrote: > On Wed, 2011-06-15 at 08:29 +0800, Tim Chen wrote: > > + 7.30% anon_vma_clone_batch > what are you testing? I didn't see Andi's batch anon->lock for fork > patches are merged in 2.6.39. Good spot that certainly isn't plain .39. 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 lock should stay the same. Let me try Linus' patch first to see if this workload can trigger his WARN. /me mutters something about patches in attachments and rebuilds. OK, the WARN doesn't trigger, but it also doesn't improve things (quite the opposite in fact): -tip 260.092 messages/sec/core +sirq-rcu 271.078 messages/sec/core +linus 262.435 messages/sec/core So Linus' patch makes the throughput drop from 271 to 262, weird. /me goes re-test without the sirq-rcu bits mixed in just to make sure. -- 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/