Re: [rfc][patch] Memory Binding API v0.3 2.5.41

From: Matthew Dobson (colpatch@us.ibm.com)
Date: Thu Oct 10 2002 - 13:43:34 EST


Martin J. Bligh wrote:
>>+#define for_each_valid_zone(zone, zonelist) \
>>+ for (zone = *zonelist->zones; zone; zone++) \
>>+ if (current->memblk_binding.bitmask & (1 << zone->zone_pgdat->memblk_id))
>
> Does the compiler optimise the last bit away on non-NUMA?
Nope.

> Want to wrap it in #ifdef CONFIG_NUMA_MEMBIND or something?
Not a problem... I've got some free time this afternoon... Should only
take me a few hours to retool the patch to include this change. ;)

> Not sure what the speed impact of this would be, but I'd
> rather it was optional, even on NUMA boxen.
Sounds reasonable... It'll be in the next itteration.

> Other than that, looks pretty good.
Glad to hear!

> M.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:38 EST