From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id 9BDD26B0044 for ; Fri, 8 Jan 2010 14:39:52 -0500 (EST) Date: Fri, 8 Jan 2010 11:39:31 -0800 (PST) From: Linus Torvalds Subject: Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() In-Reply-To: <20100108192815.GB14141@basil.fritz.box> Message-ID: References: <20100106115233.5621bd5e.kamezawa.hiroyu@jp.fujitsu.com> <20100106125625.b02c1b3a.kamezawa.hiroyu@jp.fujitsu.com> <1262969610.4244.36.camel@laptop> <87my0omo3n.fsf@basil.nowhere.org> <20100108192815.GB14141@basil.fritz.box> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andi Kleen Cc: Christoph Lameter , Peter Zijlstra , KAMEZAWA Hiroyuki , Minchan Kim , "Paul E. McKenney" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "hugh.dickins" , Nick Piggin , Ingo Molnar List-ID: On Fri, 8 Jan 2010, Andi Kleen wrote: > > With 24 CPU threads cheating is very difficult too. Stop making value judgements in you word choice, like "cheating". The fact is, the mmap_sem is per-mm, and works perfectly well. Other locking can be vma-specific, but as already mentioned, it's not going to _help_, since most of the time even hugely threaded programs will be using malloc-like functionality and you have allocations not only cross threads, but in general using the same vma. Another fact is simply that you shouldn't write your app so that it needs to do millions of page faults per second. So this whole "cheating" argument of yours is total bullshit. It bears no relation to reality. Linus -- 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