]> git.proxmox.com Git - mirror_zfs.git/commit
Illumos #4101 finer-grained control of metaslab_debug
authorGeorge Wilson <george.wilson@delphix.com>
Tue, 1 Apr 2014 00:22:55 +0000 (17:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 May 2014 16:46:04 +0000 (09:46 -0700)
commitaa7d06a98a2b3b0d864aadd310113c52b946b842
treee49591df2df73594f9f0ac0a497514d6d6ce0bb8
parentcc79a5c263802b58de62b190e264c7f61b6235c9
Illumos #4101 finer-grained control of metaslab_debug

Today the metaslab_debug logic performs two tasks:

- load all metaslabs on import/open
- don't unload metaslabs at the end of spa_sync

This change provides knobs for each of these independently.

References:
  https://illumos.org/issues/4101
  https://github.com/illumos/illumos-gate/commit/0713e23

Notes:

1) This is a small piece of the metaslab improvement patch from
Illumos. It was worth bringing over before the rest, since it's
low risk and it can be useful on fragmented pools (e.g. Lustre
MDTs). metaslab_debug_unload would give the performance benefit
of the old metaslab_debug option without causing unwanted delay
during pool import.

Ported-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2227
man/man5/zfs-module-parameters.5
module/zfs/metaslab.c