summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2010-08-07 18:30:10 +0000
committerivoras <ivoras@FreeBSD.org>2010-08-07 18:30:10 +0000
commit252207bbfb698ab9a260760a2c1573ea843afd44 (patch)
tree618d525bacf7e94fc1f65daf3ffd58e9a3f096f8 /sys/kern/vfs_cluster.c
parent542f657a7fdb80cdc9f13a9dd26ca473a3ea4920 (diff)
downloadFreeBSD-src-252207bbfb698ab9a260760a2c1573ea843afd44.zip
FreeBSD-src-252207bbfb698ab9a260760a2c1573ea843afd44.tar.gz
To help with sequential read UFS performance on modern systems, increase
the vfs.read_max default. For most systems this means going from 128 KiB to 256 KiB, which is still very conservative and lower than what most other operating systems use, but as a sane default should not interfere much with existing systems. For systems with RAID volumes and/or virtualization envirnments, where read performance is very important, increasing this sysctl tunable to 32 or even more will demonstratively yield additional performance benefits. If MAXPHYS ever gets bumped up, it will probably be a good idea to slave read_max to it.
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 1ab263c..469bc7e 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -71,7 +71,7 @@ static int write_behind = 1;
SYSCTL_INT(_vfs, OID_AUTO, write_behind, CTLFLAG_RW, &write_behind, 0,
"Cluster write-behind; 0: disable, 1: enable, 2: backed off");
-static int read_max = 8;
+static int read_max = 16;
SYSCTL_INT(_vfs, OID_AUTO, read_max, CTLFLAG_RW, &read_max, 0,
"Cluster read-ahead max block count");
OpenPOWER on IntegriCloud