lkml.org 
[lkml]   [2004]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] fix readahead breakage for sequential after random reads
From
Date

Ram Pai <linuxram@us.ibm.com> wrote:
>
> Also I think the bug that Miklos, found is really hard to reproduce. Did
> he find this bug by code inspection? Its really really hard to get into
> a state where the current window is of size 1 page with zero pages in
> the readahead window, and then the sequential read pattern to just right
> then.

I found it by accident. I did my testing with the following read
sequence:

page offset num pages
7 1
0 1
35 1
23 1
42 1
33 1
29 1
100 200

I did not measure actual performance, but only looked at the length of
the page vector passed to my filesystem's readpages() method.

Miklos
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.082 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site