From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 9 Jan 2001 19:33:37 -0200 (BRST) From: Marcelo Tosatti 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: "Stephen C. Tweedie" , Linus Torvalds Cc: "David S. Miller" , Rik van Riel , linux-mm@kvack.org List-ID: On Tue, 9 Jan 2001, Linus Torvalds wrote: > > > On Tue, 9 Jan 2001, Marcelo Tosatti wrote: > > > > The "while (!inactive_shortage())" should be "while (inactive_shortage())" > > as Benjamin noted on lk. > > Yes. Also, it does need something to make sure that it doesn't end up > being an endless loop. Ok, I'll send another patch which fixes this later today. > > The second problem is that background scanning is being done > > unconditionally, and it should not. You end up getting all pages with the > > same age if the system is idle. Look at this example (2.4.1-pre1): > > I agree. However, I think that we do want to do some background scanning > to push out dirty pages in the background, kind of like bdflush. It just > shouldn't age the pages (and thus not move them to the inactive list). Actually it must age the pages, but aging should not be unconditional. Stephen has some thoughts on this. 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/