Repository navigation
Update PGO+BOLT toolchain to 9ba77fe6 - #109864
Conversation
|
Ubuntu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Workflow [PR], commit [7a0c3ea] Summary: ❌
AI ReviewSummaryThis PR updates Missing context / blind spots
Final VerdictStatus: ✅ Approve |
|
Build (arm_fuzzers) hits OOM error when compiling all HashJoin files parallelly:
Reproduced with the toolchain on file |
… dispatch dimensions Each of the 33 HashJoin instantiation translation units compiled the probe loop joinRightColumns 1488 times: 30 map types x 2 need_filter x 2 single/multi map x 2 selector types x 2 check_null_map x 3 join_mask_kind. The copies accounted for 85% of the object code (10.9 of 12.9 MB), and with sanitizers each unit peaked at ~5.5 GB of compiler memory. On a cold compiler cache (e.g. any toolchain update) ninja starts all of these units at once and the arm_fuzzers builder is OOM-killed: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109864&sha=b2a30564a2cd30eaaaf8014aa68e5b49ef751b9a&name_0=PR&name_1=Build%20(arm_fuzzers) Seen in ClickHouse#109864. The last two dimensions buy almost nothing at runtime: - check_null_map only elides a null-pointer test on join_keys.null_map; the runtime form is the same expression with the test kept - one perfectly predicted branch per row next to a hash table probe. - join_mask_kind only elides reading JoinMask::kind; isRowFiltered is already kind-aware, so the runtime form is two predicted compares. The AllFalse specialization compiled 2.7 MB of near-dead loops per unit for a degenerate case (ON condition constant false). Making both decisions runtime and deleting both joinRightColumnsSwitchJoinMaskKind dispatchers, measured on LeftHashJoinAll.cpp in the arm_fuzzers configuration (ASan + fuzzer): - joinRightColumns instantiations: 1488 -> 248 - compiler peak RSS: 5.54 GiB -> 1.77 GiB - compile wall time: 2:29 -> 0:49 - object file: 57.7 -> 19.0 MB Co-Authored-By: Claude <[email protected]>
Three failures in the first PR validation run (https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115036&sha=30c47a7d9420ba1e86365979016e7765cbc080da&name_0=WeeklyCFI): - BuzzHouse (amd_cfi) failed with "Clickhouse was compiled without BuzzHouse enabled": add -DENABLE_BUZZHOUSE=1 to the amd_cfi build, matching the other fuzzer-carrying builds. - 03150_trace_log_add_build_id / 03150_trace_log_source_lines fail deterministically: symbols and lines in system.trace_log are all-empty in the ThinLTO+CFI build, while build_id resolves. This is a regression since the 2026-07-14 validation runs of ClickHouse#100419 (toolchain update ClickHouse#109864 is the prime suspect), tracked in ClickHouse#115122. Tag both tests no-cfi until it is fixed. The third failure, a probabilistic server SIGSEGV in gRPC response compression under test_grpc_protocol, is a real bug filed as ClickHouse#115121 - no test change, it passed on retry. Co-Authored-By: Claude Fable 5 <[email protected]>
… dispatch dimensions Each of the 33 HashJoin instantiation translation units compiled the probe loop joinRightColumns 1488 times: 30 map types x 2 need_filter x 2 single/multi map x 2 selector types x 2 check_null_map x 3 join_mask_kind. The copies accounted for 85% of the object code (10.9 of 12.9 MB), and with sanitizers each unit peaked at ~5.5 GB of compiler memory. On a cold compiler cache (e.g. any toolchain update) ninja starts all of these units at once and the arm_fuzzers builder is OOM-killed: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109864&sha=b2a30564a2cd30eaaaf8014aa68e5b49ef751b9a&name_0=PR&name_1=Build%20(arm_fuzzers) Seen in ClickHouse#109864. The last two dimensions buy almost nothing at runtime: - check_null_map only elides a null-pointer test on join_keys.null_map; the runtime form is the same expression with the test kept - one perfectly predicted branch per row next to a hash table probe. - join_mask_kind only elides reading JoinMask::kind; isRowFiltered is already kind-aware, so the runtime form is two predicted compares. The AllFalse specialization compiled 2.7 MB of near-dead loops per unit for a degenerate case (ON condition constant false). Making both decisions runtime and deleting both joinRightColumnsSwitchJoinMaskKind dispatchers, measured on LeftHashJoinAll.cpp in the arm_fuzzers configuration (ASan + fuzzer): - joinRightColumns instantiations: 1488 -> 248 - compiler peak RSS: 5.54 GiB -> 1.77 GiB - compile wall time: 2:29 -> 0:49 - object file: 57.7 -> 19.0 MB Co-Authored-By: Claude <[email protected]>
…-9ba77fe6 Update PGO+BOLT toolchain to 9ba77fe
Summary
binary-builderDockerfile to use PGO+BOLT optimized toolchain from commit9ba77fe6Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Version info
26.7.1.1092(included in26.7and later)