]> git.proxmox.com Git - mirror_zfs.git/commit
Change target size of metaslabs from 256GB to 16GB
authorSerapheim Dimitropoulos <serapheimd@gmail.com>
Sat, 26 Jan 2019 00:38:27 +0000 (16:38 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 26 Jan 2019 00:38:27 +0000 (16:38 -0800)
commitc853f382db731e15a87512f4ef1101d14d778a55
tree8f0ba611f5c4031bb55e61fb87b695fa4db3ea38
parentdf72b8bebe0ebac0b20e0750984bad182cb6564a
Change target size of metaslabs from 256GB to 16GB

= Old behavior

For vdev sizes 100GB to 50TB we keep ~200 metaslabs per
vdev and the metaslab size grows from 512MB to 256GB.
For vdev's bigger than that we start increasing the
number of metaslabs until we hit the 128K limit.

= New Behavior

For vdev sizes 100GB to 3TB we keep ~200 metaslabs per
vdev and the metaslab size grows from 512MB to 16GB.
For vdev's bigger than that we start increasing the
number of metaslabs until we hit the 128K limit.

= Reasoning

The old behavior makes metaslabs grow in size when
the vdev range is between 3TB (ms_size 16GB) and
32PB (ms_size 256GB). Even though keeping the number
of metaslabs is good in terms of potential number of
I/Os per TXG, these bigger metaslabs take longer
to be loaded and after they are loaded they can
take up a lot of memory because of their range trees.

This change tries to put a boundary in memory and
loading time for the specific range of vdev sizes.

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8324
man/man5/zfs-module-parameters.5
module/zfs/vdev.c
tests/zfs-tests/tests/functional/cli_root/zpool_import/import_rewind_config_changed.ksh