zfs/cmd/zpool
Brian Behlendorf 9fe3da9364 Improve resilver ETAs
When resilvering the estimated time remaining is calculated using
the average issue rate over the current pass.  Where the current
pass starts when a scan was started, or restarted, if the pool
was exported/imported.

For dRAID pools in particular this can result in wildly optimistic
estimates since the issue rate will be very high while scanning
when non-degraded regions of the pool are scanned.  Once repair
I/O starts being issued performance drops to a realistic number
but the estimated performance is still significantly skewed.

To address this we redefine a pass such that it starts after a
scanning phase completes so the issue rate is more reflective of
recent performance.  Additionally, the zfs_scan_report_txgs
module option can be set to reset the pass statistics more often.

Reviewed-by: Akash B <akash-b@hpe.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14410
2023-04-24 12:55:07 -07:00
..
compatibility.d Add compatibility file sets (ZoL 0.6.1, 0.6.4, OpenZFS 2.1) 2021-04-07 13:24:08 -07:00
os FreeBSD boot code reminder after zpool upgrade 2021-06-09 13:05:34 -07:00
zpool.d Remove basename(1). Clean up/shorten some coreutils pipelines 2022-02-16 17:58:55 -08:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Rescan enclosure sysfs path on import 2021-11-02 16:31:05 -07:00
zpool_iter.c Rescan enclosure sysfs path on import 2021-11-02 16:31:05 -07:00
zpool_main.c Improve resilver ETAs 2023-04-24 12:55:07 -07:00
zpool_util.c OpenZFS restructuring - zpool 2019-09-30 12:16:06 -07:00
zpool_util.h Rescan enclosure sysfs path on import 2021-11-02 16:31:05 -07:00
zpool_vdev.c Fix various typos 2021-04-07 13:27:11 -07:00