[PATCH 3/6] Embed zone_id information within the zonelist->zones pointer

2007-08-31 Thread Mel Gorman
Using two zonelists per node requires very frequent use of zone_idx(). This is costly as it involves a lookup of another structure and a substraction operation. As struct zone is always word aligned and normally cache-line aligned, the pointer values have a number of 0's at the least significant b

Re: [PATCH 3/6] Embed zone_id information within the zonelist->zones pointer

2007-08-21 Thread Mel Gorman
On (17/08/07 14:02), Christoph Lameter didst pronounce: > On Fri, 17 Aug 2007, Mel Gorman wrote: > > > +/* > > + * SMP will align zones to a large boundary so the zone ID will fit in the > > + * least significant biuts. Otherwise, ZONES_SHIFT must be 2 or less to > > + * fit > > ZONES_SHIFT is al

Re: [PATCH 3/6] Embed zone_id information within the zonelist->zones pointer

2007-08-17 Thread Christoph Lameter
On Fri, 17 Aug 2007, Mel Gorman wrote: > +/* > + * SMP will align zones to a large boundary so the zone ID will fit in the > + * least significant biuts. Otherwise, ZONES_SHIFT must be 2 or less to > + * fit ZONES_SHIFT is always 2 or less Acked-by: Christoph Lameter <[EMAIL PROTECTED]> - To

[PATCH 3/6] Embed zone_id information within the zonelist->zones pointer

2007-08-17 Thread Mel Gorman
Using one zonelist per node requires very frequent use of zone_idx(). This is costly as it involves a lookup of another structure and a substraction operation. struct zone is aligned on a node-interleave boundary so the pointer values of plenty of 0's at the least significant bits of the address.