Messages in this thread | | | Subject | Re: [PATCH] mm/filemap.c: unconditionally call mark_page_accessed | From | Dave Kleikamp <> | Date | Wed, 14 Mar 2007 15:55:41 -0500 |
| |
On Wed, 2007-03-14 at 15:58 -0400, Ashif Harji wrote: > This patch unconditionally calls mark_page_accessed to prevent pages, > especially for small files, from being evicted from the page cache despite > frequent access.
I guess the downside to this is if a reader is reading a large file, or several files, sequentially with a small read size (smaller than PAGE_SIZE), the pages will be marked active after just one read pass. My gut says the benefits of this patch outweigh the cost. I would expect real-world backup apps, etc. to read at least PAGE_SIZE.
Shaggy -- David Kleikamp IBM Linux Technology Center
- 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/
| |