mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:30:00 -04:00
Accept a clients-per-query spill range in the fetchlimit test
The clients-per-query spill steps required exactly 55 spills, but the auto-tuning ramp-up lags under load and spills more. Accept the 55..75 range; the ramp-up is already verified by the "clients-per-query increased to 10" log wait. Assisted-by: Claude:claude-opus-4-7
This commit is contained in:
parent
f0dd9358da
commit
01142e9256
1 changed files with 18 additions and 10 deletions
|
|
@ -309,12 +309,16 @@ zspill=$(grep 'spilled due to clients per query' ns5/named.stats | sed 's/ *\([0
|
|||
# ns5 configuration:
|
||||
# clients-per-query 5
|
||||
# max-clients-per-query 10
|
||||
# expected spills:
|
||||
# 15 (out of 20) spilled for the first burst, and 10 (out of 20) spilled for
|
||||
# the next 4 bursts (because of auto-tuning): 15 + (4 * 10) == 55
|
||||
# Each burst of 20 spills (20 - clients-per-query): 15 for the first burst
|
||||
# (clients-per-query starts at 5) and 10..15 for the next 4 as auto-tuning
|
||||
# ramps it to 10, giving 55 (fast ramp) to 75 (no ramp). The ramp is verified
|
||||
# above, so accept the range rather than an exact count.
|
||||
expected=55
|
||||
[ "$zspill" -eq "$expected" ] || ret=1
|
||||
echo_i "$zspill clients spilled (expected $expected)"
|
||||
expected_max=75
|
||||
echo_i "$zspill clients spilled (expected ${expected}..${expected_max})"
|
||||
if [ "$zspill" -lt "$expected" ] || [ "$zspill" -gt "$expected_max" ]; then
|
||||
ret=1
|
||||
fi
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
|
|
@ -352,12 +356,16 @@ zspill=$(grep 'spilled due to clients per query' ns5/named.stats | sed 's/ *\([0
|
|||
# ns5 configuration:
|
||||
# clients-per-query 5
|
||||
# max-clients-per-query 10
|
||||
# expected spills:
|
||||
# 15 (out of 20) spilled for the first burst, and 10 (out of 20) spilled for
|
||||
# the next 4 bursts (because of auto-tuning): 15 + (4 * 10) == 55
|
||||
# Each burst of 20 spills (20 - clients-per-query): 15 for the first burst
|
||||
# (clients-per-query starts at 5) and 10..15 for the next 4 as auto-tuning
|
||||
# ramps it to 10, giving 55 (fast ramp) to 75 (no ramp). The ramp is verified
|
||||
# above, so accept the range rather than an exact count.
|
||||
expected=55
|
||||
[ "$zspill" -eq "$expected" ] || ret=1
|
||||
echo_i "$zspill clients spilled (expected $expected)"
|
||||
expected_max=75
|
||||
echo_i "$zspill clients spilled (expected ${expected}..${expected_max})"
|
||||
if [ "$zspill" -lt "$expected" ] || [ "$zspill" -gt "$expected_max" ]; then
|
||||
ret=1
|
||||
fi
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue