aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2009-12-08 22:43:29 +0000
committerAlexander Motin <mav@FreeBSD.org>2009-12-08 22:43:29 +0000
commit20cad71f005302cb7053a93aa50e7460f599e9d4 (patch)
tree64070dc8d937de049cae2b404a85ea60f1d884a7
parent93eba8807ccb3eced9f62495d2079183a7145dba (diff)
downloadsrc-20cad71f005302cb7053a93aa50e7460f599e9d4.tar.gz
src-20cad71f005302cb7053a93aa50e7460f599e9d4.zip
Change gmirror default balance algorithm from "split" to "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. Reviewed by: pjd
Notes
Notes: svn path=/head/; revision=200282
-rw-r--r--sbin/geom/class/mirror/geom_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/geom/class/mirror/geom_mirror.c b/sbin/geom/class/mirror/geom_mirror.c
index 6ac4fb9a775a..cf15c60af9d3 100644
--- a/sbin/geom/class/mirror/geom_mirror.c
+++ b/sbin/geom/class/mirror/geom_mirror.c
@@ -44,7 +44,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, configure_priority = -1;