From 8fece88e12e4914a2cbb02c0added5e2f36a037c Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 20 Nov 2026 05:44:04 -0500 Subject: [PATCH] perf(budgets): recalibrate disk_appended_per_turn to its measured level bcc776335 failed the perf gate with disk_appended_per_turn at 200,650 B against a 200,000 B ceiling, and the next commit passed at 199,719 B. The metric did not grow between them, or since the d5431a8c4 baseline: main-push records since 35f7c4a4e read 199,719 to 199,925 B, with single runs from 198,895 to 200,650 B. All five runs of one job land on the same value, so the spread follows the CI job, not the code (bcc776335 changed only tests). The growth toward the ceiling is older and deliberate: 181,591 B to 190,655 B with the typed sizing and receipt batch that stores measured sizes per turn, then to 199,729 B with 35f7c4a4e's trigram search index. The ceiling was set at 181 KB with 10% headroom and never moved, leaving 0.1%. It is now 220,000 B, the same margin over the current level. The baseline comparison (2,000 B floor) is unchanged and still fails a step of either size. --- perf/budgets.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/perf/budgets.toml b/perf/budgets.toml index ca0dfdf11..3602deff7 100644 --- a/perf/budgets.toml +++ b/perf/budgets.toml @@ -273,10 +273,19 @@ floor = 20_000 # warm-up: WAL frames, logs, state files (writes_shim.c). Checkpoint copies # into the database are left out because their timing varies. 275,866 to # 275,869 B in every run of three batches (L, M, N); 181,312 to 181,314 -# after session_prompts (P). +# after session_prompts (P). CI's main-push records then step to 190,655 B +# (the typed sizing and receipt batch before 31aed0fa2, which stores +# measured sizes per turn) and to 199,729 B (35f7c4a4e, whose trigram index +# is written with each turn's text). From 199,719 B on main since, single +# runs read 198,895 to 200,650 B, the spread a CI job's own environment +# gives every run in it: bcc776335 read 200,646 to 200,650 B, and the +# test-only commit after it 199,719 B. The 200,000 B ceiling set at 181 KB +# had 0.1% left and failed bcc776335 on that spread alone, so the ceiling +# keeps the 10% margin it was set with; the baseline comparison (floor +# 2,000 B) still catches a step like either of those. [metrics.disk_appended_per_turn] kind = "disk" -ceiling = 200_000 +ceiling = 220_000 floor = 2_000 # One scaled hour of idle: 0 / 0 / 0 / 147 KB medians, single runs 0 to 180 KB, -- knotmirror 0.0.1