From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx118.postini.com [74.125.245.118]) by kanga.kvack.org (Postfix) with SMTP id 9A82D6B004D for ; Tue, 4 Dec 2012 12:30:32 -0500 (EST) Date: Tue, 4 Dec 2012 18:30:17 +0100 (CET) From: Thomas Gleixner Subject: Re: [PATCH 00/10] Latest numa/core release, v18 In-Reply-To: <20121203134110.GL8218@suse.de> Message-ID: References: <1354305521-11583-1-git-send-email-mingo@kernel.org> <20121203134110.GL8218@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Linus Torvalds , Ingo Molnar , Linux Kernel Mailing List , linux-mm , Peter Zijlstra , Paul Turner , Lee Schermerhorn , Christoph Lameter , Rik van Riel , Andrew Morton , Andrea Arcangeli , Johannes Weiner , Hugh Dickins On Mon, 3 Dec 2012, Mel Gorman wrote: > On Fri, Nov 30, 2012 at 12:37:49PM -0800, Linus Torvalds wrote: > > So if this is a migration-specific scalability issue, then it might be > > possible to solve by making the mutex be a rwsem instead, and have > > migration only take it for reading. > > > > Of course, I'm quite possibly wrong, and the code depends on full > > mutual exclusion. > > > > Just a thought, in case it makes somebody go "Hmm.." > > > > Offhand, I cannot think of a reason why a rwsem would not work. This > thing originally became a mutex because the RT people (Peter in > particular) cared about being able to preempt faster. It'd be nice if > they confirmed that rwsem is not be a problem for them. rwsems are preemptable as well. So I don't think this was Peter's main concern. If it works with an rwsem, then go ahead. rwsems degrade on RT because we cannot do multiple reader boosting, so they allow only a single reader which can take it recursive. But that's an RT specific issue and nothing you should worry about. Thanks, tglx -- 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/ . Don't email: email@kvack.org