HomeFreeBSD

Fix MMP write frequency for large pools

Description

Fix MMP write frequency for large pools

When a single pool contains more vdevs than the CONFIG_HZ for
for the kernel the mmp thread will not delay properly. Switch
to using cv_timedwait_sig_hires() to handle higher resolution
delays.

This issue was reported on Arch Linux where HZ defaults to only
100 and this could be fairly easily reproduced with a reasonably
large pool. Most distribution kernels set CONFIG_HZ=250 or
CONFIG_HZ=1000 and thus are unlikely to be impacted.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7205
Closes #7289

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 12 2018, 6:26 PM
GitHub <noreply@github.com>Committed on Mar 12 2018, 6:26 PM
Parents
rG743253df70e9: Hold SCL_VDEV when counting leaves
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGb7eec00f9fc0: Fix MMP write frequency for large pools (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Mar 12 2018, 6:26 PM