From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Andi Kleen <ak@muc.de>
Cc: linux-mm@kvack.org, akpm@digeo.com
Subject: Re: Redundant zonelist initialization
Date: Thu, 08 May 2003 15:41:44 -0700 [thread overview]
Message-ID: <28740000.1052433703@[10.10.2.4]> (raw)
In-Reply-To: <20030508145218.GA4355@averell>
>> > When booting 2.5.69 on a 4 Node CONFIG_DISCONTIGMEM machine I get:
>> >
>> > Building zonelist for node : 0
>> > Building zonelist for node : 1
>> > Building zonelist for node : 2
>> > Building zonelist for node : 3
>> > Building zonelist for node : 0
>> > Building zonelist for node : 0
>> > Building zonelist for node : 0
>> > Building zonelist for node : 0
>> >
>> > Why does it initialize the zonelist for node 0 five times?
>>
>> Looks like you have numnodes wrong ...
>>
>> void __init build_all_zonelists(void)
>> {
>> int i;
>>
>> for(i = 0 ; i < numnodes ; i++)
>> build_zonelists(NODE_DATA(i));
>> }
>
> Only with new mathematics :-) How can any value for numnodes explain
> such a sequence ?
I was thinking of "numnodes = 8", and just screwed up data for the last
few. Not quite sure how you'd avoid derefing a NULL ptr though, I guess.
> I think it actually comes from the two loops calling build_zonelist_node
> in build_zonelists().
I don't see how it can - that printk is before the loops.
static void __init build_zonelists(pg_data_t *pgdat)
{
int i, j, k, node, local_node;
local_node = pgdat->node_id;
printk("Building zonelist for node : %d\n", local_node);
> But I'm not sure why it produces such a strange sequence.
Throw a few printks in there, should tell you easily enough.
I'll bet you a couple of beers on it being numnodes ;-)
M.
--
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:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2003-05-08 22:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-08 11:23 Andi Kleen
2003-05-08 12:22 ` Martin J. Bligh
2003-05-08 14:52 ` Andi Kleen
2003-05-08 22:41 ` Martin J. Bligh [this message]
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='28740000.1052433703@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=ak@muc.de \
--cc=akpm@digeo.com \
--cc=linux-mm@kvack.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