From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 11 Jan 2001 09:42:23 +0000 From: "Stephen C. Tweedie" Subject: Re: Subtle MM bug Message-ID: <20010111094223.C25375@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from marcelo@conectiva.com.br on Thu, Jan 11, 2001 at 01:30:18AM -0200 Sender: owner-linux-mm@kvack.org Return-Path: To: Marcelo Tosatti Cc: Linus Torvalds , "Stephen C. Tweedie" , "David S. Miller" , Rik van Riel , linux-mm@kvack.org List-ID: Hi, On Thu, Jan 11, 2001 at 01:30:18AM -0200, Marcelo Tosatti wrote: > > On Tue, 9 Jan 2001, Linus Torvalds wrote: > > > So one "conditional aging" algorithm might just be something as simple as > > I've done a very easy conditional aging patch (I dont think doing new > functions to scan the active list and the pte's is necessary) You still need to decay the bg_page_aging counter a little somewhere, otherwise if you've been running a long-lived workload which keeps most of memory recently activated, you'll build up such a large counter that going idle will still age everything to zero. This might be as simple as clamping the value of the counter to some arbitrary maximum value such as num_physpages. Cheers, Stephen -- 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.eu.org/Linux-MM/