Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754902Ab1FOUMd (ORCPT ); Wed, 15 Jun 2011 16:12:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:4497 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289Ab1FOUM3 (ORCPT ); Wed, 15 Jun 2011 16:12:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,371,1304319600"; d="scan'208";a="13977324" Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Tim Chen To: Linus Torvalds Cc: Peter Zijlstra , Ingo Molnar , Paul McKenney , Andrew Morton , Hugh Dickins , KOSAKI Motohiro , Benjamin Herrenschmidt , David Miller , Martin Schwidefsky , Russell King , Paul Mundt , Jeff Dike , Richard Weinberger , Tony Luck , KAMEZAWA Hiroyuki , Mel Gorman , Nick Piggin , Namhyung Kim , ak@linux.intel.com, shaohua.li@intel.com, alex.shi@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Rafael J. Wysocki" In-Reply-To: References: <1308097798.17300.142.camel@schen9-DESK> <1308134200.15315.32.camel@twins> <1308135495.15315.38.camel@twins> Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Jun 2011 13:13:04 -0700 Message-ID: <1308168784.17300.152.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: 1023 Lines: 24 On Wed, 2011-06-15 at 12:11 -0700, Linus Torvalds wrote: > > And it results in real problems. For example, if you use "perf record" > to see what the hell is up, the use of kernel threads for RCU > callbacks means that the RCU cost is never even seen. I don't know how > Tim did his profiling to figure out the costs, and I don't know how he > decided that the spinlock to semaphore conversion was the culprit, but > it is entirely possible that Tim didn't actually bisect the problem, > but instead used "perf record" on the exim task, saw that the > semaphore costs had gone up, and decided that it must be the > conversion. > Yes, I was using perf to do the profiling. I thought that the mutex conversion was the most likely culprit based on the change in profile. 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/