[PATCH 1/6] readahead: sysctl parameters: set readahead_hit_rate=1

From: Fengguang Wu
Date: Sat Jan 06 2007 - 02:29:00 EST


Set default readahead_hit_rate to 1 for the majority users.

Signed-off-by: Fengguang Wu <wfg@xxxxxxxxxxxxxxxx>
---
Documentation/sysctl/vm.txt | 2 +-
mm/readahead.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

--- linux.orig/Documentation/sysctl/vm.txt
+++ linux/Documentation/sysctl/vm.txt
@@ -261,4 +261,4 @@ Possible values can be:

The larger value, the more capabilities, with more possible overheads.

-The default value is 0.
+The default value is 1.
--- linux.orig/mm/readahead.c
+++ linux/mm/readahead.c
@@ -42,7 +42,7 @@ int readahead_ratio = 50;
EXPORT_SYMBOL_GPL(readahead_ratio);

/* Readahead as long as cache hit ratio keeps above 1/##. */
-int readahead_hit_rate = 0;
+int readahead_hit_rate = 1;
#endif /* CONFIG_ADAPTIVE_READAHEAD */

/*

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/