From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3D405428.7EC4B715@zip.com.au> Date: Thu, 25 Jul 2002 12:40:24 -0700 From: Andrew Morton MIME-Version: 1.0 Subject: Re: [RFC] start_aggressive_readahead References: <20020725181059.A25857@lst.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: Christoph Hellwig , torvalds@transmeta.com, linux-mm@kvack.org List-ID: Rik van Riel wrote: > > On Thu, 25 Jul 2002, Christoph Hellwig wrote: > > > This function (start_aggressive_readahead()) checks whether all zones > > of the given gfp mask have lots of free pages. > > Seems a bit silly since ideally we wouldn't reclaim cache memory > until we're low on physical memory. > Yes, I would question its worth also. What it boils down to is: which pages are we, in the immediate future, more likely to use? Pages which are at the tail of the inactive list, or pages which are in the file's readahead window? I'd say the latter, so readahead should just go and do reclaim. - -- 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/