Page MenuHomeFreeBSD

zfsd: Use vdev prop values for fault/degrade thresholds
ClosedPublic

Authored by pinchuk.alek_gmail.com on Feb 23 2024, 4:33 PM.
Tags
Referenced Files
Unknown Object (File)
Sat, Apr 27, 9:31 PM
Unknown Object (File)
Sun, Apr 21, 9:18 AM
Unknown Object (File)
Sun, Apr 14, 5:41 PM
Unknown Object (File)
Fri, Apr 12, 5:32 PM
Unknown Object (File)
Fri, Apr 12, 5:32 PM
Unknown Object (File)
Mon, Apr 8, 10:39 PM
Unknown Object (File)
Mar 14 2024, 9:30 PM
Unknown Object (File)
Mar 14 2024, 9:29 PM
Subscribers

Details

Summary

ZED uses vdev props for setting disk fault/degrade thresholds, this
patch enables zfsd to use the same vdev props for these same tasks.

OpenZFS on Linux is using vdev props for ZED disk fault/degrade thresholds. Originally the thresholds supported were for io and checksum events and recently this was updated to process slow io events as well, see https://github.com/openzfs/zfs/commit/cbe882298e4ddc3917dfaf239eca475fe06d62d4

This patch enables us to use the same vdev props in zfsd as ZED uses. After this patch is merged both OSs will use the same vdev props to set retirement thresholds.

It's probably important to note that the threshold defaults are different between OS. I've kept the existing defaults inside zfsd and DID NOT match them to what ZED does.

Test Plan

ran zfsd tests and they passed on my machine

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cddl/usr.sbin/zfsd/case_file.cc
1206–1208

repeated word: used for for checksum

cddl/usr.sbin/zfsd/zfsd.8
130–137

hostspare -> hot spare

133

I think it might be clearer to call these "slow I/Os" or something, rather than "I/O delays", a device that generates I/O delays sound like it is adding delay (on purpose), rather than suffering it.

or even just "generates more than 8 delayed I/O reports in a 60 second period"

This revision is now accepted and ready to land.Feb 23 2024, 5:12 PM