Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2009 18:52:27 +0100
From:      Stefan Esser <se@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?
Message-ID:  <4B14065B.1020209@freebsd.org>
In-Reply-To: <hf0lsf$5mk$2@ger.gmane.org>
References:  <4B13869D.1080907@zedat.fu-berlin.de>	<0D3A9408-84A8-4C74-A318-F580B41FC1A6@exscape.org>	<hf0h0p$lm4$1@ger.gmane.org>	<20091130084704.2893cc85.wmoran@potentialtech.com>	<19219.55350.599595.807654@jerusalem.litteratus.org> <hf0lsf$5mk$2@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 30.11.2009 15:46, schrieb Ivan Voras:
> Robert Huff wrote:
>> Bill Moran writes:
>>
>>>  It's common knowledge that the default value for vfs.read_max is
>>>  non- optimal for most hardware and that significant performance
>>>  improvements can be made in most cases by raising it.
>>
>>     Documentation/discussion where?
> 
> There is no documentation except for the sysctl documentation itself:
> "vfs.read_max: Cluster read-ahead max block count" but it depends on the
> load - it helps sequential reads, will probably do nothing for other
> kinds of loads. It is also UFS-only.

I tested different values some time ago. vfs.read_max can be raised to
about twice its default value and I set it to 15, when I had UFS+SU
file systems (switched over to ZFS, long ago.) Tests included operations
on large files (multi-GB) that were processed and written back to the
same drive. But even in these tests, there was an upper limit beyond
that system responsiveness declined massively (IIRC, at about 25). The
best value (without impact on randoim I/O) seems to be in the range
12 to 16. (FreeBSD used to apply a heuristic on read-ahead, and only
incremented the read amount to the limit set by the sysctl as long as
the accesses were purely sequential.)

Regards, STefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B14065B.1020209>