HomeFreeBSD

Use reduced precision for scan times

Description

Use reduced precision for scan times

Scan time limits do not need precision beyond 1ms. Switching
scn_sync_start_time and spa_sync_starttime from gethrtime() to
getlrtime() saves ~3% of CPU time during resilver scan stage.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>
Closes #18061

Details

Provenance
mavAuthored on Thu, Dec 18, 6:22 PM
GitHub <noreply@github.com>Committed on Thu, Dec 18, 6:22 PM
Parents
rGa83bb15fcd0c: Reduce minimal scrub/resilver times
Branches
Unknown
Tags
Unknown
References
vendor/openzfs/master