Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2009 17:47:37 -0800
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Alexander Motin <mav@FreeBSD.org>
Cc:        svn-src-stable@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-stable-8@FreeBSD.org
Subject:   Re: svn: stable/8/sbin/geom/class/mirror
Message-ID:  <4B21A4B9.3070005@FreeBSD.org>
In-Reply-To: <200912102351.nBANpOKc078607@svn.freebsd.org>
References:  <200912102351.nBANpOKc078607@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-Maxim



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