From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 15 Feb 2007 17:13:55 -0800 From: Andrew Morton Subject: Re: [RFC] Remove unswappable anonymous pages off the LRU Message-Id: <20070215171355.67c7e8b4.akpm@linux-foundation.org> In-Reply-To: References: 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: linux-mm@kvack.org, Nick Piggin , Peter Zijlstra , KAMEZAWA Hiroyuki , "Martin J. Bligh" , Rik van Riel List-ID: On Thu, 15 Feb 2007 13:05:47 -0800 (PST) Christoph Lameter wrote: > If we do not have any swap or we have run out of swap then anonymous pages > can no longer be removed from memory. In that case we simply treat them > like mlocked pages. For a kernel compiled CONFIG_SWAP off this means > that all anonymous pages are marked mlocked when they are allocated. It's nice and simple, but I think I'd prefer to wait for the existing mlock changes to crash a bit less before we do this. Is it true that PageMlocked() pages are never on the LRU? If so, perhaps we could overload the lru.next/prev on these pages to flag an mlocked page. #define PageMlocked(page) (page->lru.next == some_address_which_isnt_used_for_anwything_else) -- 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