]> git.proxmox.com Git - mirror_zfs.git/commit
Increase default zfs_scan_vdev_limit to 16MB
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 Jan 2023 22:05:45 +0000 (14:05 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Jan 2023 18:01:13 +0000 (10:01 -0800)
commitc0aea7cf4e86fc02db8046fbb3bca21a918053a2
treeb2a11b7e47274c8690301b0c8e54f2f71dded291
parentdc5c8006f684b1df3f2d4b6b8c121447d2db0017
Increase default zfs_scan_vdev_limit to 16MB

For HDD based pools the default zfs_scan_vdev_limit of 4M
per-vdev can significantly limit the maximum scrub performance.
Increasing the default to 16M can double the scrub speed from
80 MB/s per disk to 160 MB/s per disk.

This does increase the memory footprint during scrub/resilver
but given the performance win this is a reasonable trade off.
Memory usage is capped at 1/4 of arc_c_max.  Note that number
of outstanding I/Os has not changed and is still limited by
zfs_vdev_scrub_max_active.

Reviewed-by: Akash B <akash-b@hpe.com>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14428
man/man4/zfs.4
module/zfs/dsl_scan.c