Use a minimal readahead size of 32KB instead of 16KB for the adaptive readahead. The potential benefit(disk utilization in worst case doubles) is large, while the potential panelty is small(wastes up to 32MB when thrashed/missed 1000 times). This minimal value is only applied for sequential streams. Signed-off-by: Fengguang Wu --- include/linux/mm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.20-rc4-mm1.orig/include/linux/mm.h +++ linux-2.6.20-rc4-mm1/include/linux/mm.h @@ -1069,10 +1069,11 @@ int write_one_page(struct page *page, in /* readahead.c */ #ifdef CONFIG_ADAPTIVE_READAHEAD #define VM_MAX_READAHEAD 1024 /* kbytes */ +#define VM_MIN_READAHEAD 32 /* kbytes (includes current page) */ #else #define VM_MAX_READAHEAD 128 /* kbytes */ -#endif #define VM_MIN_READAHEAD 16 /* kbytes (includes current page) */ +#endif #define VM_MAX_CACHE_HIT 256 /* max pages in a row in cache before * turning readahead off */ -- - 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/