Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 00:00:18 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r200374 - stable/7/sbin/geom/class/mirror
Message-ID:  <200912110000.nBB00InE078928@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Dec 11 00:00:18 2009
New Revision: 200374
URL: http://svn.freebsd.org/changeset/base/200374

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.

Modified:
  stable/7/sbin/geom/class/mirror/geom_mirror.c
  stable/7/sbin/geom/class/mirror/gmirror.8
Directory Properties:
  stable/7/sbin/geom/   (props changed)
  stable/7/sbin/geom/class/label/   (props changed)
  stable/7/sbin/geom/class/part/   (props changed)
  stable/7/sbin/geom/misc/   (props changed)

Modified: stable/7/sbin/geom/class/mirror/geom_mirror.c
==============================================================================
--- stable/7/sbin/geom/class/mirror/geom_mirror.c	Thu Dec 10 23:51:24 2009	(r200373)
+++ stable/7/sbin/geom/class/mirror/geom_mirror.c	Fri Dec 11 00:00:18 2009	(r200374)
@@ -45,7 +45,7 @@ __FBSDID("$FreeBSD$");
 uint32_t lib_version = G_LIB_VERSION;
 uint32_t version = G_MIRROR_VERSION;
 
-static char label_balance[] = "split", configure_balance[] = "none";
+static char label_balance[] = "load", configure_balance[] = "none";
 static intmax_t label_slice = 4096, configure_slice = -1;
 static intmax_t insert_priority = 0;
 

Modified: stable/7/sbin/geom/class/mirror/gmirror.8
==============================================================================
--- stable/7/sbin/geom/class/mirror/gmirror.8	Thu Dec 10 23:51:24 2009	(r200373)
+++ stable/7/sbin/geom/class/mirror/gmirror.8	Fri Dec 11 00:00:18 2009	(r200374)
@@ -129,6 +129,7 @@ Specifies balance algorithm to use, one 
 .Bl -tag -width ".Cm round-robin"
 .It Cm load
 Read from the component with the lowest load.
+This is the default balance algorithm.
 .It Cm prefer
 Read from the component with the biggest priority.
 .It Cm round-robin
@@ -136,7 +137,6 @@ Use round-robin algorithm when choosing 
 .It Cm split
 Split read requests, which are bigger than or equal to slice size on N pieces,
 where N is the number of active components.
-This is the default balance algorithm.
 .El
 .It Fl F
 Do not synchronize after a power failure or system crash.



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