From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Mar 2007 03:50:16 +0100 From: Nick Piggin Subject: Re: [rfc][patch 2/2] mm: mlocked pages off LRU Message-ID: <20070306025016.GA1912@wotan.suse.de> References: <20070305161746.GD8128@wotan.suse.de> <20070306010529.GB23845@wotan.suse.de> <20070306014403.GD23845@wotan.suse.de> <20070306021307.GE23845@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Christoph Lameter , Linux Memory Management List , Andrew Morton , Christoph Hellwig List-ID: On Mon, Mar 05, 2007 at 06:46:31PM -0800, Christoph Lameter wrote: > On Tue, 6 Mar 2007, Nick Piggin wrote: > > > > The above is a bit contradictory. Assuming they are taken off the LRU: > > > How will they be returned to the LRU? > > > > In what way is it contradictory? If they are mlocked, we put them on the > > LRU when they get munlocked. If they are off the LRU due to a !swap condition, > > then we put them back on the LRU by whatever mechanism that uses (eg. a > > 3rd LRU list that we go through much more slowly...). > > Ok how are we going to implement the 3rd LRU for non mlocked anonymous > pages if you use the lru for the refcounter field? Another page flags bit? I'll implement it exactly the same way as I would if *not* using the lru fields privately for !PageLRU && PageMLock pages. -- 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