[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110222182414.GA5818@one.firstfloor.org>
Date: Tue, 22 Feb 2011 19:24:14 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Christoph Lameter <cl@...ux.com>
Cc: Andi Kleen <andi@...stfloor.org>, akpm@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
aarcange@...hat.com, lwoodman@...hat.com,
Andi Kleen <ak@...ux.intel.com>, arcange@...hat.com
Subject: Re: [PATCH 3/8] Preserve local node for KSM copies
On Tue, Feb 22, 2011 at 09:47:26AM -0600, Christoph Lameter wrote:
> 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?
Either could be wrong, but not moving the mappings seems most deterministic
to me. At least one of the processes (whoever allocated the page first)
will stay with its local memory.
Also the alloc_page_vma_node() call is used for THP too. I guess i should
split it out.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists