From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 2858F6B0083 for ; Wed, 15 Jun 2011 16:12:30 -0400 (EDT) Subject: Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex From: Tim Chen 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 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: 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" 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org