Messages in this thread | | | Date | Sun, 5 Feb 2006 17:47:39 -0800 (PST) | From | Shantanu Goel <> | Subject | Re: [VM PATCH] rotate_reclaimable_page fails frequently |
| |
> 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |