Skip to content

Commit

Permalink
Shorten arcstat_quiescence sleep time
Browse files Browse the repository at this point in the history
With the latest L2ARC fixes, 2 seconds is too long to wait for
quiescence of arcstats like l2_size. Shorten this interval to avoid
having the persistent L2ARC tests in ZTS prematurely terminated.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: George Amanakis <[email protected]>
Closes #14981
  • Loading branch information
gamanakis authored Jun 15, 2023
1 parent ccec7fb commit 10e36e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zfs-tests/include/libtest.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -3706,7 +3706,7 @@ function arcstat_quiescence # stat echo

while $do_once || [ $stat1 -ne $stat2 ] || [ $stat2 -eq 0 ]; do
typeset stat1=$(get_arcstat $stat)
sleep 2
sleep 0.5
typeset stat2=$(get_arcstat $stat)
do_once=false
done
Expand Down

0 comments on commit 10e36e1

Please sign in to comment.