Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755038Ab0AESA3 (ORCPT ); Tue, 5 Jan 2010 13:00:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754685Ab0AESA2 (ORCPT ); Tue, 5 Jan 2010 13:00:28 -0500 Received: from one.firstfloor.org ([213.235.205.2]:38485 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754684Ab0AESA2 (ORCPT ); Tue, 5 Jan 2010 13:00:28 -0500 Date: Tue, 5 Jan 2010 19:00:26 +0100 From: Andi Kleen To: Christoph Lameter Cc: Andi Kleen , Linus Torvalds , KAMEZAWA Hiroyuki , Minchan Kim , Peter Zijlstra , "Paul E. McKenney" , Peter Zijlstra , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "hugh.dickins" , Nick Piggin , Ingo Molnar Subject: Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() Message-ID: <20100105180026.GG1778@basil.fritz.box> References: <20100105092559.1de8b613.kamezawa.hiroyu@jp.fujitsu.com> <28c262361001042029w4b95f226lf54a3ed6a4291a3b@mail.gmail.com> <20100105134357.4bfb4951.kamezawa.hiroyu@jp.fujitsu.com> <20100105143046.73938ea2.kamezawa.hiroyu@jp.fujitsu.com> <20100105163939.a3f146fb.kamezawa.hiroyu@jp.fujitsu.com> <87wrzwbh0z.fsf@basil.nowhere.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 24 On Tue, Jan 05, 2010 at 11:47:49AM -0600, Christoph Lameter wrote: > On Tue, 5 Jan 2010, Andi Kleen wrote: > > > > Oh well. Somebody who is bored might look at trying to make the wrapper > > > code in arch/x86/lib/semaphore_32.S work on x86-64 too. It should make the > > > successful rwsem cases much faster. > > > > Maybe, maybe not. > > What we saw in the past was that the cost of acquiring exclusive > access to the contended cachelines containing mmap_sem and rss counters > was most important. That cost should be about the same between the spinlock and the atomic version. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/