Thread (37 messages) 37 messages, 7 authors, 2008-03-08

Re: [PATCH 3/6] Remember what the preferred zone is for zone_statistics

From: Lee Schermerhorn <hidden>
Date: 2008-02-28 17:45:54

On Wed, 2008-02-27 at 14:00 -0800, Christoph Lameter wrote:
quoted
This patch records what the preferred zone is rather than assuming the
first zone in the zonelist is it. This simplifies the reading of later
patches in this set.
And is needed for correctness if GFP_THISNODE is used?
Mel can correct me.  

I believe this is needed for MPOL_BIND allocations because we now use
the zonelist for the local node--i.e., the node from which the
allocation takes place--and search for the nearest node in the policy
nodemask that satisfies the allocation.  For the purpose of numa stats,
a "numa_hit" occurs if the allocation succeeds on the first node in the
zone list that is also in the policy nodemask--this is the "preferred
node".

Lee
Reviewed-by: Christoph Lameter <redacted>
--
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help