Page MenuHomeFreeBSD

zfsd: Use vdev prop values for fault/degrade thresholds

Authored by on Feb 23 2024, 4:33 PM.
Referenced Files
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
Unknown Object (File)
Mar 5 2024, 7:29 PM
Unknown Object (File)
Feb 27 2024, 1:33 AM



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

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

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline


repeated word: used for for checksum


hostspare -> hot spare


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