-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add knob to disable slow io notifications #17477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ section, below. | |
| Every vdev has a set of properties that export statistics about the vdev | ||
| as well as control various behaviors. | ||
| Properties are not inherited from top-level vdevs, with the exception of | ||
| checksum_n, checksum_t, io_n, io_t, slow_io_n, and slow_io_t. | ||
| checksum_n, checksum_t, io_n, io_t, slow_io_events, slow_io_n, and slow_io_t. | ||
| .Pp | ||
| The values of numeric properties can be specified using human-readable suffixes | ||
| .Po for example, | ||
|
|
@@ -132,7 +132,8 @@ Indicates if a leaf device supports trim operations. | |
| .Pp | ||
| The following native properties can be used to change the behavior of a vdev. | ||
| .Bl -tag -width "allocating" | ||
| .It Sy checksum_n , checksum_t , io_n , io_t , slow_io_n , slow_io_t | ||
| .It Sy checksum_n , checksum_t , io_n , io_t , slow_io_n , | ||
| .It Sy slow_io_t | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: it looks like you could put this back the way it was on a single line. |
||
| Tune the fault management daemon by specifying checksum/io thresholds of <N> | ||
| errors in <T> seconds, respectively. | ||
| These properties can be set on leaf and top-level vdevs. | ||
|
|
@@ -149,6 +150,11 @@ For | |
| .Sy OpenZFS on FreeBSD | ||
| defaults see | ||
| .Xr zfsd 8 . | ||
| The | ||
| .It Sy slow_io_events | ||
| property controls whether slow I/O events are generated. | ||
| When enabled, the fault management daemon (or another consumer) can process | ||
| them. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add a properly formatted version of this (or similar), "Even when disabled, slow I/Os will be included in the zpool status -s output". |
||
| .It Sy comment | ||
| A text comment up to 8192 characters long | ||
| .It Sy bootsize | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,7 @@ typeset -a properties=( | |
| checksum_t | ||
| io_n | ||
| io_t | ||
| slow_io_events | ||
| slow_io_n | ||
| slow_io_t | ||
| trim_support | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |
|
|
||
| # | ||
| # Copyright (c) 2023, Klara Inc. | ||
| # Copyright (c) 2025, Mariusz Zaborski <[email protected]> | ||
| # | ||
|
|
||
| # DESCRIPTION: | ||
|
|
@@ -140,8 +141,8 @@ function slow_io_degrade | |
| { | ||
| do_setup | ||
|
|
||
| zpool set slow_io_n=5 $TESTPOOL $VDEV | ||
| zpool set slow_io_t=60 $TESTPOOL $VDEV | ||
| log_must zpool set slow_io_n=5 $TESTPOOL $VDEV | ||
| log_must zpool set slow_io_t=60 $TESTPOOL $VDEV | ||
|
|
||
| start_slow_io | ||
| for i in {1..16}; do | ||
|
|
@@ -193,6 +194,44 @@ function slow_io_no_degrade | |
| do_clean | ||
| } | ||
|
|
||
| # Change slow_io_n, slow_io_t to 5 events in 60 seconds | ||
| # fire more than 5 events. Disable slow io events. | ||
| # Should not degrade. | ||
| function slow_io_degrade_disabled | ||
| { | ||
| do_setup | ||
|
|
||
| log_must zpool set slow_io_n=5 $TESTPOOL $VDEV | ||
| log_must zpool set slow_io_t=60 $TESTPOOL $VDEV | ||
| log_must zpool set slow_io_events=off $TESTPOOL $VDEV | ||
|
|
||
| start_slow_io | ||
| for i in {1..16}; do | ||
| dd if=${FILEPATH}$i of=/dev/null count=1 bs=512 2>/dev/null | ||
| sleep 0.5 | ||
| done | ||
| stop_slow_io | ||
| zpool sync | ||
|
|
||
| # | ||
| # wait 60 seconds to confirm that zfs.delay was not generated. | ||
| # | ||
| typeset -i i=0 | ||
| typeset -i events=0 | ||
| while [[ $i -lt 60 ]]; do | ||
| events=$(zpool events | grep "ereport\.fs\.zfs.delay" | wc -l) | ||
| i=$((i+1)) | ||
| sleep 1 | ||
| done | ||
| log_note "$events delay events found" | ||
|
|
||
| [ $events -eq "0" ] || \ | ||
| log_fail "expecting no delay events, found $events" | ||
|
|
||
| log_mustnot wait_vdev_state $TESTPOOL $VDEV "DEGRADED" 45 | ||
| do_clean | ||
| } | ||
|
|
||
| log_assert "Test ZED slow io configurability" | ||
| log_onexit cleanup | ||
|
|
||
|
|
@@ -202,5 +241,6 @@ log_must zed_start | |
| default_degrade | ||
| slow_io_degrade | ||
| slow_io_no_degrade | ||
| slow_io_degrade_disabled | ||
|
|
||
| log_pass "Test ZED slow io configurability" | ||
Uh oh!
There was an error while loading. Please reload this page.