Ratelimit deadman zevents as with delay zevents

Just as delay zevents can flood the zevent pipe when a vdev becomes
unresponsive, so do the deadman zevents.

Ratelimit deadman zevents according to the same tunable as for delay
zevents.

Enable deadman tests on FreeBSD and add a test for deadman event
ratelimiting. 

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11786
This commit is contained in:
Ryan Moeller
2021-04-07 19:23:57 -04:00
committed by Brian Behlendorf
parent 96e15d29fa
commit 7822c01eb6
9 changed files with 102 additions and 12 deletions
+2 -1
View File
@@ -1695,7 +1695,8 @@ Default value: \fB64\fR.
\fBzfs_slow_io_events_per_second\fR (int)
.ad
.RS 12n
Rate limit delay zevents (which report slow I/Os) to this many per second.
Rate limit delay and deadman zevents (which report slow I/Os) to this many per
second.
.sp
Default value: 20
.RE