Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754837Ab1FOVLm (ORCPT ); Wed, 15 Jun 2011 17:11:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:36111 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991Ab1FOVLl (ORCPT ); Wed, 15 Jun 2011 17:11:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,371,1304319600"; d="scan'208";a="13996021" Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Tim Chen To: Andi Kleen Cc: Peter Zijlstra , 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" In-Reply-To: <4DF91CB9.5080504@linux.intel.com> 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> Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Jun 2011 14:12:16 -0700 Message-ID: <1308172336.17300.177.camel@schen9-DESK> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1138 Lines: 32 On Wed, 2011-06-15 at 13:57 -0700, Andi Kleen wrote: > > 7.44% exim [kernel.kallsyms] [k] format_decode > > | > > --- format_decod > > > This is a glibc issue. exim calls libdb and libdb asks sysconf for the > number of CPUs to tune > its locking, and glibc reads /proc/stat. And /proc/stat is incredible slow. > > I would blame glibc, but in this case it's really the kernel to blame > for not providing proper > interface. > > This was my motivation for the sysconf() syscall I submitted some time ago. > https://lkml.org/lkml/2011/5/13/455 > > Anyways a quick workaround is to use this LD_PRELOAD: > http://halobates.de/smallsrc/sysconf.c > But it's not 100% equivalent. > Thanks to Andi for providing the info. We've used this workaround in our testing so it will not mask true kernel scaling bottlenecks. Tim -- 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/