Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755585Ab1FOVwF (ORCPT ); Wed, 15 Jun 2011 17:52:05 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:63873 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754551Ab1FOVwB (ORCPT ); Wed, 15 Jun 2011 17:52:01 -0400 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> User-Agent: K-9 Mail for Android In-Reply-To: <1308173849.15315.91.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Linus Torvalds Date: Wed, 15 Jun 2011 14:51:34 -0700 To: Peter Zijlstra , Tim Chen CC: Andi Kleen , 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" Message-ID: <87ea4bd7-8b16-4b24-8fcb-d8e9b6f421ec@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 23 Peter Zijlstra wrote: >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). Yeah, I think it's ridiculous to say that glibc is not doing something stupid and that it's a problem with kernel interfaces. Do the proc file parsing once and cache the result in a static variable. Doing it over and over again is just crazy. Adding new system calls because glibc is crazy is insane. Linus -- 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/