Re: [PATCH] mm/filemap.c: unconditionally call mark_page_accessed

From: Dave Kleikamp
Date: Thu Mar 15 2007 - 08:47:22 EST


On Thu, 2007-03-15 at 01:22 -0400, Ashif Harji wrote:

> I would tend to agree with David that: "Any application doing many
> tiny-sized reads isn't exactly asking for great performance." As well,
> applications concerned with performance and caching problems can read in a
> file in PAGE_SIZE chunks. I still think the simple fix of removing the
> condition is the best approach, but I'm certainly open to alternatives.

A possible alternative might be to store the offset within the page in
the readahead state, and call mark_page_accessed() when the read offset
is less than or equal to the previous offset.

--
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/