From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 8 Jan 2001 09:50:32 -0800 (PST) From: Linus Torvalds Subject: Re: Subtle MM bug In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: "David S. Miller" , Marcelo Tosatti , linux-mm@kvack.org List-ID: On Mon, 8 Jan 2001, Rik van Riel wrote: > On Sun, 7 Jan 2001, Linus Torvalds wrote: > > > /* > > * Too many active pages? That implies that we don't have enough > > * of a working set for page_launder() to do a good job. Start by > > * walking the VM space.. > > */ > > if ((nr_active_pages >> 1) > total_pages) > > swap_out(); > > > > /* > > * This is where we actually free memory > > */ > > page_launder(..); > > Ahhh, but this is NOT the balancing problem we're trying to > pin down in 2.4... > > The (possible) problem is in the balancing between swap_out() > and refill_inactive_scan(). That _is_ the problem the above will fix. Don't read "page_launder()" there: it's more meant to be "this is the old code that does page_launder() etc.." Trust me. Try my code. It will work. Linus -- 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/