[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070410155411.GF13445@duck.suse.cz>
Date: Tue, 10 Apr 2007 17:54:11 +0200
From: Jan Kara <jack@...e.cz>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, npiggin@...e.de
Subject: [PATCH] Improve heuristic detecting sequential reads
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?
Bye
Honza
--
Jan Kara <jack@...e.cz>
SuSE CR Labs
View attachment "readahead-2.6.21-rc6.diff" of type "text/x-patch" (3582 bytes)
Powered by blists - more mailing lists