svn: stable/8/sbin/geom/class/mirror

Will Andrews will at firepipe.net
Sat Dec 12 17:58:18 PST 2009


On Thu, Dec 10, 2009 at 05:47:37PM -0800, Maxim Sobolev wrote:
> Alexander Motin wrote:
> > Author: mav
> > Date: Thu Dec 10 23:51:24 2009
> > New Revision: 200373
> > URL: http://svn.freebsd.org/changeset/base/200373
> > 
> > Log:
> >   MFC r200282, r200290:
> >   Change gmirror default balance algorithm from "split" to improved "load".
> >   "split" is very ineffective for devices with rotating media as HDDs.
> >   To be effective, it needs that transfer time reduction due to block
> >   splitting was bigger then access time increase due to non-sequential
> >   access. For modern HDDs I was able to reproduce it only with read sizes
> >   of 2MB and above, which is almost not applicable in real life.
> >   "load" algorithm same time is more universal and effective now.
> 
> The other problem with real hard drives is that they usually read much 
> more data than requested. Some suggest that they read as much as one 
> track each time the data is not in cache even if one sector has been 
> requested, therefore splitting request of any reasonable size is 
> meaningless, as it would simply cause both drives to load essentially 
> the same data, wasting half of available I/O bandwidth and in addition 
> you cause both heads to do seek, which makes it even worse.

Indeed.  I think the benchmarks speak for themselves.  The new algorithm
results in much lower average I/O service time, due to the seek time
reduction by dispatching read requests to providers according to the known
distance from the request, and also reduced by taking advantage of the disk
cache.  The disk cache size probably affects how close the requests need to
be for optimal selection, so perhaps a sysctl is warranted to allow
administrative adjustment of this value from mav@'s default of 1MB.

Regards,
-- 
wca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20091213/28351c28/attachment.pgp


More information about the svn-src-all mailing list