From 219519c8142fe1ef0b7bad681368edfe1a7472a9 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Sat, 5 Dec 2026 01:23:10 +0000 Subject: [PATCH] Raise the default defrag test latency limit from 5ms to 20ms Defrag's starvation protection sizes each duty cycle from the time since the previous one ended, at up to 1.5x the wait with active-defrag-cycle-max 60. A few-ms scheduling stall on a shared CI runner therefore turns into a defrag cycle longer than 5ms even when every stage honors its deadline, and a stall landing mid-cycle adds directly to it. Every test using the default limit flakes this way, failing about 1 in 200 test-ubuntu-latest jobs. 20ms stays above the observed noise (max 11ms in CI) while still catching a stage that ignores its deadline. Signed-off-by: Madelyn Olson --- tests/unit/memefficiency.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl index 2f0aed3ce00..62a002a541c 100644 --- a/tests/unit/memefficiency.tcl +++ b/tests/unit/memefficiency.tcl @@ -181,9 +181,9 @@ run_solo {defrag} { # populate {code} - required, populates initial unfragmented data # fragment {code} - required, fragments the populated data # while_defragging {code} - optional, code executed after defrag has started - # latency - optional, verifies the latency to a ms target (default 5) + # latency - optional, verifies the latency to a ms target (default 20) proc perform_defrag_test {name args} { - set opts(latency) 5 + set opts(latency) 20 set opts(while_defragging) {} array set opts $args assert {[info exists opts(populate)]}