]> Git Repo - linux.git/commit
[PATCH] readahead: fix initial window size calculation
authorSteven Pratt <[email protected]>
Wed, 22 Mar 2006 08:08:48 +0000 (00:08 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Mar 2006 15:54:03 +0000 (07:54 -0800)
commitaed75ff3caafce404d9be7f0c088716375be5279
tree15e7165969ff533b73e29a4ee0d4b7c889ef1d29
parenta564da3964db3256069190c2ae95069143ac37fb
[PATCH] readahead: fix initial window size calculation

The current current get_init_ra_size is not optimal across different IO
sizes and max_readahead values.  Here is a quick summary of sizes computed
under current design and under the attached patch.  All of these assume 1st
IO at offset 0, or 1st detected sequential IO.

32k max, 4k request

old         new
-----------------
 8k        8k
16k       16k
32k       32k

128k max, 4k request
old         new
-----------------
32k         16k
64k         32k
128k        64k
128k       128k

128k max, 32k request
old         new
-----------------
32k         64k    <-----
64k        128k
128k       128k

512k max, 4k request
old         new
-----------------
4k         32k     <----
16k        64k
64k       128k
128k      256k
512k      512k

Cc: Oleg Nesterov <[email protected]>
Cc: Steven Pratt <[email protected]>
Cc: Ram Pai <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/readahead.c
This page took 0.057932 seconds and 4 git commands to generate.