diff --git a/perf/budgets.toml b/perf/budgets.toml index 4d2780c6e..ca0dfdf11 100644 --- a/perf/budgets.toml +++ b/perf/budgets.toml @@ -66,10 +66,19 @@ floor = 8_000 # Process memory per turn after warm-up; includes the SQLite writer cache # still filling (robot-docs/perf.md). 16.4 / 11.2 / 10.5 KB, MAD <= 5 KB. +# CI's f299ac26 and c0e7fcf0 measured 3,809 and 28,535 B/turn while retained +# BEAM stayed at 1,054 and 932 B/turn. These full five-sample replays used +# Linux 6.18.35, 10 CPUs and 3915 MiB. A low process-memory batch must not +# tighten the leak comparison: unused allocator space and SQLite cache pages +# also move this slope. Keep its fixed 32 KB ceiling and use the separately +# gated retained_turn_beam for precise retained BEAM growth. +# Command: python3 perf/report/ci.py +# Reports: https://sites.wisp.place/okami.mom/albedo-perf/f299ac2/ +# https://sites.wisp.place/okami.mom/albedo-perf/c0e7fcf/ [metrics.retained_turn_tree_uss] kind = "memory" +comparison = "absolute" ceiling = 32_000 -floor = 24_000 # BEAM per turn after warm-up, the precise leak gate, counted like # idle_session_beam. Six batches: 0.3 to 2.0 KB, MAD <= 3.4 KB. diff --git a/robot-docs/perf.md b/robot-docs/perf.md index b506adc3e..b32b1086c 100644 --- a/robot-docs/perf.md +++ b/robot-docs/perf.md @@ -160,6 +160,12 @@ variation can move its batch median without comparable retained BEAM growth. growth separately. Older records without `boot_beam` supply no baseline for that metric, so its first comparison uses only the ceiling. +`retained_turn_tree_uss` also uses its fixed absolute ceiling. Unused allocator +space and the SQLite writer cache can change its process-memory slope without +matching retained BEAM growth. `retained_turn_beam` keeps its regression +comparison and its ceiling as the precise retained-BEAM leak check. The idle +session and transient peak comparisons retain their calibrated tolerances. + `disk_written_boot` has an explicit fresh-home initialization allowance. Its schema and migration writes accumulate as the supported database grows. The baseline regression check still detects large increases. Steady-state turn,