From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 30 Jul 2007 11:29:33 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH/RFC] Allow selected nodes to be excluded from MPOL_INTERLEAVE masks In-Reply-To: <1185812028.5492.79.camel@localhost> Message-ID: References: <1185566878.5069.123.camel@localhost> <20070728151912.c541aec0.kamezawa.hiroyu@jp.fujitsu.com> <1185812028.5492.79.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Lee Schermerhorn Cc: KAMEZAWA Hiroyuki , linux-mm , Paul Mundt , Nishanth Aravamudan , ak@suse.de, akpm@linux-foundation.org, Eric Whitney List-ID: On Mon, 30 Jul 2007, Lee Schermerhorn wrote: > + return 0; > +} > +early_param("no_interleave_nodes", setup_no_interleave_nodes); > + > /* The value user specified ....changed by config */ > static int user_zonelist_order = ZONELIST_ORDER_DEFAULT; > /* string for sysctl */ > @@ -2410,8 +2435,15 @@ static int __build_all_zonelists(void *d > build_zonelists(pgdat); > build_zonelist_cache(pgdat); > > - if (pgdat->node_present_pages) > + if (pgdat->node_present_pages) { > node_set_state(nid, N_MEMORY); > + /* > + * Only nodes with memory are valid for MPOL_INTERLEAVE, > + * but maybe not all of them? > + */ > + if (!node_isset(nid, no_interleave_nodes)) > + node_set_state(nid, N_INTERLEAVE); else printk .... would be better since it will only list the nodes that have memory and are excluded from interleave. -- 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