From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032654Ab2CSTN5 (ORCPT ); Mon, 19 Mar 2012 15:13:57 -0400 Received: from casper.infradead.org ([85.118.1.10]:48554 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759348Ab2CSTNt convert rfc822-to-8bit (ORCPT ); Mon, 19 Mar 2012 15:13:49 -0400 Message-ID: <1332184396.18960.387.camel@twins> Subject: Re: [RFC][PATCH 00/26] sched/numa From: Peter Zijlstra To: Andrea Arcangeli Cc: Avi Kivity , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Dan Smith , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Mon, 19 Mar 2012 20:13:16 +0100 In-Reply-To: <20120319135745.GL24602@redhat.com> References: <20120316144028.036474157@chello.nl> <4F670325.7080700@redhat.com> <1332155527.18960.292.camel@twins> <20120319130401.GI24602@redhat.com> <1332163591.18960.334.camel@twins> <20120319135745.GL24602@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-03-19 at 14:57 +0100, Andrea Arcangeli wrote: > With your code they will get -ENOMEM from split_vma and a slowdown in > all regular page faults and vma mangling operations, before they run > out of memory... But why would you want to create that many vmas? If you're going to call sys_numa_mbind() at object level you're doing it wrong. Typical usage would be to call it on the chunks your allocator asks from the system. Depending on how your application decomposes this is per thread or per thread-pool. But again, who is writing such large threaded apps. The shared address space thing is cute, but the shared address space thing is also the bottleneck. Sharing mmap_sem et al across the entire machine has been enough reason not to use threads for plenty people.