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.

Signed-off-by: George Amanakis <gamanakis@gmail.com>
This commit is contained in:
George Amanakis 2023-06-15 12:37:59 +02:00 committed by Brian Behlendorf
parent f28cd347c4
commit ef2156c66e

View File

@ -4268,7 +4268,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