diff options
author | mm <mm@FreeBSD.org> | 2011-07-18 08:29:49 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2011-07-18 08:29:49 +0000 |
commit | 94656ca305cce2dc4b2fc31d0f556398dea3a845 (patch) | |
tree | e82006ca212476e2a1fa75a95c28ae56cf01202f /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | |
parent | 5f3a3207a0d86fe328ed6c579d11c39c6d6a6a43 (diff) | |
download | FreeBSD-src-94656ca305cce2dc4b2fc31d0f556398dea3a845.zip FreeBSD-src-94656ca305cce2dc4b2fc31d0f556398dea3a845.tar.gz |
ZFS tries to allocate blocks evenly across all devices. This means when
devices are imbalanced zfs will lots of CPU searching for space on devices
which tend to be pretty full. It should instead fail quickly on the full
devices and move onto devices which have more availability.
New loader tunable: vfs.zfs.mg_alloc_failures (min = 8)
Illumos-gate changeset: 13379:4df42cc92254
Obtained from: Illumos (Bug #1051)
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c index 1709f68..9138309 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c @@ -20,6 +20,7 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011 by Delphix. All rights reserved. */ #include <sys/zfs_context.h> @@ -1674,3 +1675,9 @@ spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps) return (0); } + +boolean_t +spa_debug_enabled(spa_t *spa) +{ + return (spa->spa_debug); +} |