Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753326Ab2E2Nvp (ORCPT ); Tue, 29 May 2012 09:51:45 -0400 Received: from casper.infradead.org ([85.118.1.10]:56050 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180Ab2E2Nvo convert rfc822-to-8bit (ORCPT ); Tue, 29 May 2012 09:51:44 -0400 Message-ID: <1338299468.26856.80.camel@twins> Subject: Re: [PATCH 14/35] autonuma: knuma_migrated per NUMA node queues From: Peter Zijlstra To: Andrea Arcangeli Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hillf Danton , Dan Smith , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter Date: Tue, 29 May 2012 15:51:08 +0200 In-Reply-To: <1337965359-29725-15-git-send-email-aarcange@redhat.com> References: <1337965359-29725-1-git-send-email-aarcange@redhat.com> <1337965359-29725-15-git-send-email-aarcange@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 Content-Length: 1298 Lines: 37 On Fri, 2012-05-25 at 19:02 +0200, Andrea Arcangeli wrote: > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 41aa49b..8e578e6 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -666,6 +666,12 @@ typedef struct pglist_data { > struct task_struct *kswapd; > int kswapd_max_order; > enum zone_type classzone_idx; > +#ifdef CONFIG_AUTONUMA > + spinlock_t autonuma_lock; > + struct list_head autonuma_migrate_head[MAX_NUMNODES]; > + unsigned long autonuma_nr_migrate_pages; > + wait_queue_head_t autonuma_knuma_migrated_wait; > +#endif > } pg_data_t; > > #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) O(nr_nodes^2) data.. ISTR people rewriting a certain slab allocator to get rid of that :-) Also, don't forget that MAX_NUMNODES is an unconditional 512 on distro kernels, even when we only have 2. Now the total wasted space isn't too bad since its only 16 bytes, totaling a whole 2M for a 256 node system. But still, something like that wants at least a mention somewhere. -- 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/