Re: [PATCH] Improve heuristic detecting sequential reads

From: Andrew Morton
Date: Tue Apr 10 2007 - 19:46:25 EST


On 11 Apr 2007 00:56:51 +0200
Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> Jan Kara <jack@xxxxxxx> writes:
>
> > Hello!
> >
> > In thread http://lkml.org/lkml/2007/3/9/403, we discussed a problem
> > with the current heuristic for detecting sequential IO in
> > do_generic_mapping_read() - for small files a page is marked as accessed
> > only once which can cause a performance problems.
> > Attached is a patch that improves the heuristic by introducing a
> > ra.offset variable so now we can reliably detect sequetial reads.
> > The patch replaces Nick's patch from http://lkml.org/lkml/2007/3/15/177
> > (Nick has acked to replace the patch). Could you please put the patch
> > into -mm?
>
> There's a much more complete patchkit for this that gets reposted
> regularly on l-k. Perhaps it would make sense to test that first?

adaptive readahead? Has been in -mm for a year. Problem is, it is
_so_ complete that I just don't know how to merge it. It's huge, and
only Wu understands it. So it's really rather stuck.
-
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/