linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Question:  new bind_zonelist uses only one zone type
@ 2006-01-17  8:46 KAMEZAWA Hiroyuki
  2006-01-17 14:29 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: KAMEZAWA Hiroyuki @ 2006-01-17  8:46 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-mm

in -mm4 (in linus.patch)
==
static struct zonelist *bind_zonelist(nodemask_t *nodes)
{
         struct zonelist *zl;
         int num, max, nd;

         max = 1 + MAX_NR_ZONES * nodes_weight(*nodes);
         zl = kmalloc(sizeof(void *) * max, GFP_KERNEL);
         if (!zl)
                 return NULL;
         num = 0;
         for_each_node_mask(nd, *nodes)
                 zl->zones[num++] = &NODE_DATA(nd)->node_zones[policy_zone];
         zl->zones[num] = NULL;
         return zl;
}
==
policy_zone is ZONE_DMA, ZONE_NORMAL, ZONE_HIGHMEM, depends on system.

If policy_zone is ZONE_NORMAL, returned zonelist will be
{Node(0)'s NORMAL, Node(1)'s NORMAL, Node(2)'s Normal.....}

If node0 has only DMA/DMA32 and Node1-NodeX has Normal, node0 will be ignored
and zonelist will include not-populated zone.

Is this intended ?


-- 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>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-18  3:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-17  8:46 Question: new bind_zonelist uses only one zone type KAMEZAWA Hiroyuki
2006-01-17 14:29 ` Andi Kleen
2006-01-17 23:47   ` KAMEZAWA Hiroyuki
2006-01-18  3:00     ` Andi Kleen
2006-01-18  3:26       ` KAMEZAWA Hiroyuki
2006-01-18  3:40       ` Jack Steiner
2006-01-18  3:49         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox