[WIP] Keep compact task indexing and reduce tag-list and idle memory costs #727

Closed
kayg wants to merge 6 commits from perf/cold-growth-fix2 into perf/cold-growth-gate
Owner

Task metadata keeps the compact shared note keys, source line locations and covered sort fields from #721. Tag-only note totals now walk the selected tag range through the existing plugin visibility interface, instead of scanning all Notes. The memory module fixes glibc’s mmap threshold at its initial 128 KiB value, and unchanged warm scans keep their existing derived state file. Format parsing and display extraction remain in the format modules.

Not ready to merge: two of three 100k settled cold-growth reports fail the unchanged 10% gate. API-open tails are also higher than the fresh #717 baseline, despite passing their server budget. This draft supersedes #721 and targets #717 (perf/cold-growth-gate).

Metric Fresh #717 median Candidate median Candidate three values
home.page_tag 31.211484 3.728602 3.728602 / 3.238852 / 4.580684
idle.rss 60.746094 56.117188 56.117188 / 55.484375 / 68.859375
open.api_get 12.144227 28.706775 43.977261 / 20.463696 / 28.706775

The historical #717 idle median was 56.566406 MiB. The new idle median is 56.117188 MiB; the 68.859375 MiB outlier remains in every report. The matching RSS snapshot splits into 55.070312 MiB anonymous and 13.789062 MiB file-backed residency. Range divided by median across the three reports is 8.48% before and 23.83% after for idle RSS, and 2.91% before and 35.99% after for tag-list p95.

Size Settled cold-growth values Result
100k 9.267257% / 11.367302% / 11.033013% 1/3 pass
10k 4.260542% / 5.408171% / 5.956326% 3/3 pass

The retained, hash-verified #721 binary also fails the current cold comparison at 10.167749%. That does not establish that every candidate timing difference is environmental. The original 10% limit, settled endpoint, cache sizes and durability barriers are unchanged.

All final server budgets pass three reports at 100k, with five warm runs and the original idle window. Task list, count, description and update gates pass three reports at both sizes. Workspace and recovery tests: 1197 passed, zero failed, 20 existing ignored. Clippy with warnings denied, formatting, both typechecks and the 5000-case property run pass. Web typecheck has zero errors and 14 existing warnings. The new unchanged-scan test failed before the fix and passes afterward.

Full evidence contains before/after tables, exact query plans, allocator/RSS breakdowns, every gate output, initial failed attempts, controls and binary hashes. Every fixture home is deleted. No evidence artifacts are committed. Issue #686 remains open.

Task metadata keeps the compact shared note keys, source line locations and covered sort fields from #721. Tag-only note totals now walk the selected tag range through the existing plugin visibility interface, instead of scanning all Notes. The memory module fixes glibc’s mmap threshold at its initial 128 KiB value, and unchanged warm scans keep their existing derived state file. Format parsing and display extraction remain in the format modules. Not ready to merge: two of three 100k settled cold-growth reports fail the unchanged 10% gate. API-open tails are also higher than the fresh #717 baseline, despite passing their server budget. This draft supersedes #721 and targets #717 (`perf/cold-growth-gate`). | Metric | Fresh #717 median | Candidate median | Candidate three values | |---|---:|---:|---| | home.page_tag | 31.211484 | 3.728602 | 3.728602 / 3.238852 / 4.580684 | | idle.rss | 60.746094 | 56.117188 | 56.117188 / 55.484375 / 68.859375 | | open.api_get | 12.144227 | 28.706775 | 43.977261 / 20.463696 / 28.706775 | The historical #717 idle median was 56.566406 MiB. The new idle median is 56.117188 MiB; the 68.859375 MiB outlier remains in every report. The matching RSS snapshot splits into 55.070312 MiB anonymous and 13.789062 MiB file-backed residency. Range divided by median across the three reports is 8.48% before and 23.83% after for idle RSS, and 2.91% before and 35.99% after for tag-list p95. | Size | Settled cold-growth values | Result | |---|---|---| | 100k | 9.267257% / 11.367302% / 11.033013% | 1/3 pass | | 10k | 4.260542% / 5.408171% / 5.956326% | 3/3 pass | The retained, hash-verified #721 binary also fails the current cold comparison at 10.167749%. That does not establish that every candidate timing difference is environmental. The original 10% limit, settled endpoint, cache sizes and durability barriers are unchanged. All final server budgets pass three reports at 100k, with five warm runs and the original idle window. Task list, count, description and update gates pass three reports at both sizes. Workspace and recovery tests: 1197 passed, zero failed, 20 existing ignored. Clippy with warnings denied, formatting, both typechecks and the 5000-case property run pass. Web typecheck has zero errors and 14 existing warnings. The new unchanged-scan test failed before the fix and passes afterward. [Full evidence](https://git.kayg.org/attachments/4fd75f7b-7104-4b89-9f47-d4b7baf581f8) contains before/after tables, exact query plans, allocator/RSS breakdowns, every gate output, initial failed attempts, controls and binary hashes. Every fixture home is deleted. No evidence artifacts are committed. Issue #686 remains open.
Share Markdown structure between backlinks and describers
Some checks failed
CI / server (pull_request) Successful in 1m18s
CI / rust (pull_request) Successful in 13m55s
CI / web (pull_request) Failing after 40s
0ea217c7e4
Count tags through covering ranges and release transient heaps
Some checks failed
CI / server (pull_request) Successful in 1m6s
CI / rust (pull_request) Successful in 12m44s
CI / web (pull_request) Failing after 39s
135a01a9df
Author
Owner

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

Closing per #931: this PR belongs to the superseded ARM64 perf series.
kayg closed this pull request 2026-11-04 17:37:40 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m6s
CI / rust (pull_request) Successful in 12m44s
CI / web (pull_request) Failing after 39s

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!727
No description provided.