Repository navigation
Conversation
Pause scheduled producers and drain executor cleanup while capturing heaps. Add controlled worker populations and raw startup/retained-memory reporting. Related: ClickHouse#121545 Related: ClickHouse#121364 Regression report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/118532/4c71c8c4d3cd0887b2e89d5437e7721c6435fc99/pr/storage_memory_check/storage_memory_report.html
|
Workflow [PR], commit [b2f9b69] Summary: ✅
AI ReviewSummaryPR #129357, reviewed at Missing context / blind spots
Final VerdictStatus: ✅ Approve — no actionable code changes requested; the validation limits above remain. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes27 object files changed (+69.86 KiB total), 0 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units392 translation units recompiled, 4010 s compile time in total, 392 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.95 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Storage-memory checkpoints can capture unfinished worker cleanup, while broad
ThreadStatusexclusions hide real worker allocations. Pause scheduled producers, drain executor cleanup, and keep scheduling paused through heap capture. Add optional worker controls and unfiltered startup/retained-memory reporting.Alternative to #121545, which fences executor scheduling. This approach also controls lazy worker participation. The existing filtered CI gate remains until the reference binary supports identical controls; raw totals are informational meanwhile.
Validation on aarch64 with
-O3and ThinLTO: 34 processes, 646 heaps, and 404 focused test executions passed. Across five final controlled runs, the largest scenario spread was 336 B; the multiple-table outlier fell from 33,024 B to 8 B. A dev-only probe confirmed that raw reporting retains a real worker’s 4 KiB allocation that the existing filter hides. Retaining the active-parts loader costs 48,840 B in median first-pass retained memory. Full sanitizer/tidy CI and executor-latency validation remain outstanding.Related: #121545
Related: #121364
Observed regression: https://s3.amazonaws.com/clickhouse-test-reports/PRs/118532/4c71c8c4d3cd0887b2e89d5437e7721c6435fc99/pr/storage_memory_check/storage_memory_report.html
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Stabilize storage-memory checkpoints and report unfiltered allocations, including startup and retained worker state.
Workflow [PR]
Sync PR [sync-upstream/pr/129357]