[WIP] Stabilize the cold index growth gate #717

Closed
kayg wants to merge 1 commit from perf/cold-growth-gate into perf/arm64-fixes-3
Owner

Cold index growth used only three samples per variant, with fixture creation and prior filesystem writes unsettled. This harness-only change settles writes before each sample, measures through shutdown and final writeback, checks for an empty WAL, and reports ready/settled times plus WAL/database sizes. It uses at least 15 alternating pairs, including when an older command requests fewer, and adds --cold-only for targeted validation. The 10 percent limit is unchanged. Cold measurements now take roughly five times as many fills by default.

Five unchanged-product repetitions now span 14.388–16.528 percent (2.140 percentage points), compared with 27.722 points using the old instrumented measurement. All five still fail the 10 percent gate. A temporary matched-workload control with a real 15 percent delay measured 14.521 percent and correctly failed. The temporary instrumentation and injection are absent from this diff.

Validation: formatting, 2 targeted harness tests, and targeted clippy with warnings denied passed. All measurements held perf-lock, and every fixture home was removed after recording.

Raw evidence and reproduction scripts, SHA256 56aad0ba544956911e914e1abc6f44868da4b37eaf9ff83118d888de46010850. Detailed findings are on #686. Product code remains at e837280e; this PR is based on perf/arm64-fixes-3. Related to #686.

Cold index growth used only three samples per variant, with fixture creation and prior filesystem writes unsettled. This harness-only change settles writes before each sample, measures through shutdown and final writeback, checks for an empty WAL, and reports ready/settled times plus WAL/database sizes. It uses at least 15 alternating pairs, including when an older command requests fewer, and adds --cold-only for targeted validation. The 10 percent limit is unchanged. Cold measurements now take roughly five times as many fills by default. Five unchanged-product repetitions now span 14.388–16.528 percent (2.140 percentage points), compared with 27.722 points using the old instrumented measurement. All five still fail the 10 percent gate. A temporary matched-workload control with a real 15 percent delay measured 14.521 percent and correctly failed. The temporary instrumentation and injection are absent from this diff. Validation: formatting, 2 targeted harness tests, and targeted clippy with warnings denied passed. All measurements held perf-lock, and every fixture home was removed after recording. [Raw evidence and reproduction scripts](https://git.kayg.org/attachments/9c561d0a-c0ba-48c8-80e0-9fd932ae0d2e), SHA256 `56aad0ba544956911e914e1abc6f44868da4b37eaf9ff83118d888de46010850`. Detailed findings are on #686. Product code remains at e837280e; this PR is based on perf/arm64-fixes-3. Related to #686.
Settle filesystem writes when measuring cold index growth
Some checks failed
CI / server (pull_request) Successful in 1m20s
CI / rust (pull_request) Successful in 14m36s
CI / web (pull_request) Failing after 36s
7c4b85d08e
Author
Owner

Closing per #931: this gate belongs to the superseded ARM64 perf series.

Closing per #931: this gate belongs to the superseded ARM64 perf series.
kayg closed this pull request 2026-11-04 17:37:24 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m20s
CI / rust (pull_request) Successful in 14m36s
CI / web (pull_request) Failing after 36s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!717
No description provided.