linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: akpm@linux-foundation.org, kxr@sgi.com,
	Nishanth Aravamudan <nacc@us.ibm.com>,
	linux-mm@kvack.org, Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Subject: Re: [patch 11/12] Memoryless nodes: Fix GFP_THISNODE behavior
Date: Wed, 11 Jul 2007 17:06:39 +0900	[thread overview]
Message-ID: <20070711170639.51ebb2d8.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20070710215456.642568985@sgi.com>

some nitpicks...

On Tue, 10 Jul 2007 14:52:16 -0700
Christoph Lameter <clameter@sgi.com> wrote:

> +static void build_thisnode_zonelists(pg_data_t *pgdat)
> +{
> +	enum zone_type i;
> +	int j;
> +	struct zonelist *zonelist;
> +
> +	for (i = 0; i < MAX_NR_ZONES; i++) {
> +		zonelist = pgdat->node_zonelists + MAX_NR_ZONES + i;
> + 		j = build_zonelists_node(pgdat, zonelist, 0, i);
> +		zonelist->zones[j] = NULL;
> +	}
> +}
adding explanation as following is maybe good.
==
	/* 
         * NUMA default zonelist is structured as
	 * [0....MAX_NR_ZONES) : allows fallbacks to other node for each GFP_MASK.
	 * [MAX_NR_ZONES...MAX_ZONELISTS) : disallow fallbacks for GFP_XXX |GFP_THISNODE
	 */
==
> +
> +/*
>   * Build zonelists ordered by zone and nodes within zones.
>   * This results in conserving DMA zone[s] until all Normal memory is
>   * exhausted, but results in overflowing to remote node while memory
> @@ -2267,7 +2283,7 @@ static void build_zonelists(pg_data_t *p
>  	int order = current_zonelist_order;
>  
>  	/* initialize zonelists */
> -	for (i = 0; i < MAX_NR_ZONES; i++) {
> +	for (i = 0; i < 2 * MAX_NR_ZONES; i++) {

please use MAX_ZONELISTS here.

-Kame

--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2007-07-11  8:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070710215339.110895755@sgi.com>
     [not found] ` <20070710215456.394842768@sgi.com>
2007-07-11  7:48   ` [patch 10/12] Memoryless nodes: Update memory policy and page migration KAMEZAWA Hiroyuki
2007-07-11 16:16     ` Nishanth Aravamudan
2007-07-11 16:37       ` Nishanth Aravamudan
2007-07-11 17:35       ` Christoph Lameter
     [not found] ` <20070710215456.642568985@sgi.com>
2007-07-11  8:06   ` KAMEZAWA Hiroyuki [this message]
2007-07-11 17:45     ` [patch 11/12] Memoryless nodes: Fix GFP_THISNODE behavior Christoph Lameter
     [not found] ` <20070710215455.870757833@sgi.com>
2007-07-11  8:37   ` [patch 08/12] Uncached allocator: Handle memoryless nodes Jes Sorensen
     [not found] ` <20070710215454.355598739@sgi.com>
2007-07-11 16:17   ` [patch 02/12] NUMA: Introduce node_memory_map Nishanth Aravamudan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070711170639.51ebb2d8.kamezawa.hiroyu@jp.fujitsu.com \
    --to=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=kxr@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=nacc@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox