From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/6] readahead: sysctl parameters: set readahead_hit_rate=1
Date: Sat, 06 Jan 2007 15:26:27 +0800 [thread overview]
Message-ID: <368068420.98357@ustc.edu.cn> (raw)
Message-ID: <20070106072729.455570443@mail.ustc.edu.cn> (raw)
In-Reply-To: 20070106072626.911640026@mail.ustc.edu.cn
[-- Attachment #1: readahead-sysctl-parameters-set-readahead_hit_rate-1.patch --]
[-- Type: text/plain, Size: 804 bytes --]
Set default readahead_hit_rate to 1 for the majority users.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
---
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 */
/*
--
next prev parent reply other threads:[~2007-01-06 7:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070106072626.911640026@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 0/6] adaptive readahead update Fengguang Wu
[not found] ` <20070106072729.455570443@mail.ustc.edu.cn>
2007-01-06 7:26 ` Fengguang Wu [this message]
[not found] ` <20070106072729.598977589@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 2/6] readahead: min/max sizes: remove get_readahead_bounds() Fengguang Wu
[not found] ` <20070106072729.755581784@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 3/6] readahead: context based method: update ra_min Fengguang Wu
[not found] ` <20070106072729.877602418@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 4/6] readahead: context based method: remove readahead_ratio Fengguang Wu
[not found] ` <20070106072730.019364791@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 5/6] readahead: call scheme: remove get_readahead_bounds() Fengguang Wu
[not found] ` <20070106072730.157093477@mail.ustc.edu.cn>
2007-01-06 7:26 ` [PATCH 6/6] readahead: nfsd case: remove ra_min Fengguang Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=368068420.98357@ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox