HomeFreeBSD

Increase default zfs_rebuild_vdev_limit to 64MB

Description

Increase default zfs_rebuild_vdev_limit to 64MB

When testing distributed rebuild performance with more capable
hardware it was observed than increasing the zfs_rebuild_vdev_limit
to 64M reduced the rebuild time by 17%. Beyond 64MB there was
some improvement (~2%) but it was not significant when weighed
against the increased memory usage. Memory usage is capped at 1/4
of arc_c_max.

Additionally, vr_bytes_inflight_max has been moved so it's updated
per-metaslab to allow the size to be adjust while a rebuild is
running.

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 24 2023, 11:23 PM
Parents
rGc0aea7cf4e86: Increase default zfs_scan_vdev_limit to 16MB
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG973934b96526: Increase default zfs_rebuild_vdev_limit to 64MB (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 27 2023, 6:02 PM