lkml.org 
[lkml]   [2007]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/8] readahead: min/max sizes: increase VM_MIN_READAHEAD to 32KB
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 <wfg@mail.ustc.edu.cn>
---
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/

\
 
 \ /
  Last update: 2007-01-27 09:27    [from the cache]
©2003-2011 Jasper Spaans