Illumos #1051: zfs should handle imbalanced luns
authorGeorge Wilson <George.Wilson@delphix.com>
Tue, 26 Jul 2011 19:08:52 +0000 (12:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 1 Aug 2011 19:09:11 +0000 (12:09 -0700)
commit6d974228ef05366c546bb04198dafcb38785c16d
tree0b5133bcfd94f7165d941f1ed0e461e30adb0e64
parentbb939d10859e4f56bc793c4d5077e680a8c6c3aa
Illumos #1051: zfs should handle imbalanced luns

Today zfs tries to allocate blocks evenly across all devices.
This means when devices are imbalanced zfs will use lots of
CPU searching for space on devices which tend to be pretty
full.  It should instead fail quickly on the full LUNs and
move onto devices which have more availability.

Reviewed by: Eric Schrock <Eric.Schrock@delphix.com>
Reviewed by: Matt Ahrens <Matt.Ahrens@delphix.com>
Reviewed by: Adam Leventhal <Adam.Leventhal@delphix.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Reviewed by: Gordon Ross <gwr@nexenta.com>
Approved by: Garrett D'Amore <garrett@nexenta.com>

References to Illumos issue and patch:
- https://www.illumos.org/issues/510
- https://github.com/illumos/illumos-gate/commit/5ead3ed965

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #340
cmd/ztest/ztest.c
include/sys/metaslab.h
include/sys/metaslab_impl.h
include/sys/spa.h
include/sys/spa_impl.h
module/zfs/metaslab.c
module/zfs/spa_misc.c
module/zfs/zio.c