Shorten arcstat_quiescence sleep time

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 <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14981
This commit is contained in:
George Amanakis 2023-06-15 21:45:36 +02:00 committed by GitHub
parent ccec7fbe1c
commit 10e36e1761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3706,7 +3706,7 @@ function arcstat_quiescence # stat echo
while $do_once || [ $stat1 -ne $stat2 ] || [ $stat2 -eq 0 ]; do while $do_once || [ $stat1 -ne $stat2 ] || [ $stat2 -eq 0 ]; do
typeset stat1=$(get_arcstat $stat) typeset stat1=$(get_arcstat $stat)
sleep 2 sleep 0.5
typeset stat2=$(get_arcstat $stat) typeset stat2=$(get_arcstat $stat)
do_once=false do_once=false
done done