From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20060206014739.82993.qmail@web33003.mail.mud.yahoo.com> Date: Sun, 5 Feb 2006 17:47:39 -0800 (PST) From: Shantanu Goel Subject: Re: [VM PATCH] rotate_reclaimable_page fails frequently In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: "linux-kernel@vger.kernel.org" , linux-mm@kvack.org List-ID: > The question is, why is the page not yet back on the > LRU by the time the data write completes ? > One possibility is that dirtiness is being tracked by buffers which are clean. When writepage() notices that it simply marks the page clean and calls end_page_writeback() which then calls rotate_reclaimable_page() before the page scanner has had the chance to put the page back on the LRU. > Surely a disk IO is slow enough that the page will > have been put on the LRU milliseconds before the IO > completes ? > Agreed but if the scenario I described above is possible, there would essentially be no delay. I have not examined the ext3 code paths closely. Perhaps someone on the list can verify if this can happen. The statistics seem to clearly indicate that writeback can complete before the scanner gets a chance to put the page back. > In what kind of configuration do you run into this > problem ? Not sure what you looking for here but there is nothing unusual on this machine that I can think of. The machine runs Ubuntu Breezy with Gnome. To force that particular VM code path, I wrote a simple program that gobbled a lot of mmap'ed memory and then ran the dd test. The only VM parameter I adjusted was swappiness which I set to 55 instead of the default 60. Shantanu __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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