[lkml]   [2007]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/6] Have zonelist contains structs with both a zone pointer and zone_idx
On Fri, 28 Sep 2007, Mel Gorman wrote:

> Filtering zonelists requires very frequent use of zone_idx(). This is costly
> as it involves a lookup of another structure and a substraction operation. As
> the zone_idx is often required, it should be quickly accessible. The node
> idx could also be stored here if it was found that accessing zone->node is
> significant which may be the case on workloads where nodemasks are heavily
> used.
> This patch introduces a struct zoneref to store a zone pointer and a zone
> index. The zonelist then consists of an array of this struct zonerefs which
> are looked up as necessary. Helpers are given for accessing the zone index
> as well as the node index.
> [ Suggested struct zoneref instead of embedding information in pointers]
> Signed-off-by: Mel Gorman <>
> Acked-by: Christoph Lameter <>

OOM locking looks good, thanks.

Acked-by: David Rientjes <>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-10-17 05:25    [W:0.161 / U:5.512 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site