From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 8 Oct 2007 13:47:44 -0400 From: Rik van Riel Subject: Re: [PATCH 1/7] swapin_readahead: excise NUMA bogosity Message-ID: <20071008134744.4b03f7e1@bree.surriel.com> In-Reply-To: References: <20071008133538.6ee6ad05@bree.surriel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Hugh Dickins , Andrew Morton , Andi Kleen , Lee Schermerhorn , linux-mm@kvack.org List-ID: On Mon, 8 Oct 2007 10:41:26 -0700 (PDT) Christoph Lameter wrote: > On Mon, 8 Oct 2007, Rik van Riel wrote: > > > Due to the way swapin_readahead works (and how swapout works), > > it can easily end up pulling in another task's memory with the > > current task's NUMA allocation policy. > > I am not sure what you mean by "another task's memory"? How does > memory become owned by a task? Swapin_readahead simply reads in all swap pages that are physically close to the desired one from the swap area, without taking into account whether or not the swap entry belongs to the current task or others. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- 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: email@kvack.org