bug of pgdat_list connection in init_bootmem()
PATCH 1/1 bug of pgdat_list connection in init_bootmem()
I think 2.6.14-rc2 has a bug in init_bootmem().
There are just 2 pgdat in pgdat_list even if node num is 3 or more, because pgdat_last is not updated.
Bye.
P.S.
I would like to remove this pgdat_list, to simplify hot-add/remove a node. and posted patch before.
http://marc.theaimsgroup.com/?l=linux-mm&m=111596924629564&w=2
http://marc.theaimsgroup.com/?l=linux-mm&m=111596953711780&w=2
I would like to repost after getting performance impact by this. But it is very hard that I can get time to use big NUMA machine now. So, I don't know when I will be able to repost it.
Anyway, this should be modified before remove pgdat_list.
Signed-off-by Yasunori Goto <[email protected]>
mm/bootmem.c +3 -2
@@ -66,9 +66,10 @@ static unsigned long __init init_bootmem pgdat->pgdat_next =NULL ;/* Add new nodes last so that bootmem always starts searching in the first nodes, not the last ones */ -if (pgdat_last) +if (pgdat_last){ pgdat_last->pgdat_next = pgdat; -else { + pgdat_last = pgdat; + }else { pgdat_list = pgdat; pgdat_last = pgdat; }
Signature · 7 lines
Yasunori Goto -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Yasunori Goto
I would like to remove this
pgdat_list, to simplify hot-add/remove a node. and posted patch before.
http://marc.theaimsgroup.com/?l=linux-mm&m=111596924629564&w=2
http://marc.theaimsgroup.com/?l=linux-mm&m=111596953711780&w=2I would like to repost after getting performance impact by this. But it is very hard that I can get time to use big NUMA machine now. So, I don't know when I will be able to repost it.
Anyway, this should be modified before remove
pgdat_list.
Could you resync those to a current kernel and resend them? I'll take them into -mhp for a bit.
I'd be very skeptical that it would hurt performance. If nothing else, it just makes the pgdat smaller, and the likelyhood of having the next bit in a bitmask and the NODE_DATA() entry in your cache is slightly higher than some random pgdat->list.
-- Dave
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 12 lines · Yasunori Goto
Quoted 10 lines
I would like to remove this
pgdat_list, to simplify hot-add/remove a node. and posted patch before.
http://marc.theaimsgroup.com/?l=linux-mm&m=111596924629564&w=2
http://marc.theaimsgroup.com/?l=linux-mm&m=111596953711780&w=2I would like to repost after getting performance impact by this. But it is very hard that I can get time to use big NUMA machine now. So, I don't know when I will be able to repost it.
Anyway, this should be modified before remove
pgdat_list.
Quoted 7 lines
Could you resync those to a current kernel and resend them? I'll take them into -mhp for a bit.
I'd be very skeptical that it would hurt performance. If nothing else, it just makes the pgdat smaller, and the likelyhood of having the next bit in a bitmask and the
NODE_DATA()entry in your cache is slightly higher than some randompgdat->list.
Ok! I'll do it. :-)
Thanks.
Signature · 7 lines
Yasunori Goto -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>