From: Yasunori Goto <y-goto@jp.fujitsu.com>
To: Andi Kleen <ak@suse.de>
Cc: torvalds@osdl.org, akpm@osdl.org,
Christoph Lameter <clameter@engr.sgi.com>,
linux-mm@kvack.org
Subject: Re: [PATCH for 2.6.16] Handle holes in node mask in node fallback list initialization
Date: Fri, 17 Feb 2006 12:33:17 +0900 [thread overview]
Message-ID: <20060217115427.4060.Y-GOTO@jp.fujitsu.com> (raw)
In-Reply-To: <200602170223.34031.ak@suse.de>
> - n = (node+i) % num_online_nodes();
> + n = (node+i) % (highest_node + 1);
To tell the truth, I think that both of their calculations
are conceptually strange.
The first and true issue is that variable name is wrong.
Ok, I'll rewrite true meaning of this calculation
True vaiable names are here.
i -> online_node_id.
node -> start_node_id.
n -> target_node_id.
So, this loop is like followings.
for_each_online_node(online_node_id){
target_node_id = (start_node_id + online_node_id)
% num_online_nodes()
:
}
What does mean (start_node_id + ONLINE_node_id)?
~~~
This means nothing even if using highest_node_id.
If one of node is removed, or offlined at first,
trouble will be occur. target_node_id may point offlined node.
ex) start_node_id = 1, online nodes are 0, 1, 3....
(start_node_id + online_node_id) % num_online_nodes
1 1 3
target_node_id will be 2! It is offlined node.
But, now, node id is contiguous, and there is/(was?) no trouble.
So, everyone haven't minded this....
Bye.
--
Yasunori Goto
--
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>
next prev parent reply other threads:[~2006-02-17 3:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 1:23 Andi Kleen
2006-02-17 1:40 ` Christoph Lameter
2006-02-17 1:46 ` Andi Kleen
2006-02-17 2:12 ` KAMEZAWA Hiroyuki
2006-02-17 1:51 ` Christoph Lameter
2006-02-17 2:10 ` Andi Kleen
2006-02-17 2:46 ` Christoph Lameter
2006-02-17 6:10 ` Yasunori Goto
2006-02-17 9:58 ` Andi Kleen
2006-02-17 11:23 ` Bob Picco
2006-02-17 12:15 ` Andi Kleen
2006-02-17 14:34 ` Lee Schermerhorn
2006-02-17 16:05 ` Christoph Lameter
2006-02-17 3:33 ` Yasunori Goto [this message]
2006-02-17 16:52 ` Linus Torvalds
2006-02-17 18:07 ` Andi Kleen
2006-02-17 18:38 ` Linus Torvalds
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=20060217115427.4060.Y-GOTO@jp.fujitsu.com \
--to=y-goto@jp.fujitsu.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=clameter@engr.sgi.com \
--cc=linux-mm@kvack.org \
--cc=torvalds@osdl.org \
/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