Re: [PATCH 3/8] Preserve local node for KSM copies

Christoph Lameter
2011-02-22T15:47:31Z

On Mon, 21 Feb 2011, Andi Kleen wrote:

> Add a alloc_page_vma_node that allows passing the "local" node in.
> Use it in ksm to allocate copy pages on the same node as
> the original as possible.

Why would that be useful? The shared page could be on a node that is not
near the process that maps the page. Would it not be better to allocate on
the node that is local to the process that maps the page?