Repository navigation
Run a smaller copy of the external_set performance query 13 - #131824
Merged
alexey-milovidov merged 1 commit intoNov 16, 2026
Merged
alexey-milovidov merged 1 commit into
alexey-milovidov merged 1 commit into
Conversation
Query 13 of external_set.xml (a set of 10M tuples of four hashes, 32-byte keys) takes 3.43 s on MasterCI amd and 2.83 s on arm, above report.py's 2 s single-run limit. About 2 s is the single-threaded build of the set; the lookups read most of their blocks from the file because the set is 2.4 times its 128 MiB cache, which is what the query measures. No existing query number or text changes: 1 query is disabled and 1 smaller copy appended as 14. The copy is the same text at a quarter of its scale: a set of 2.5M tuples with max_bytes_for_external_set_cache = 33554432 (a quarter of the default), 2.5M lookups in chunks of max_block_size = 16352 (a quarter of 65409). Measured with perf.py on the official MasterCI build, L3 capped to one way: the cache hit share (0.393), block accesses per key (0.419), bytes per block read (11.7 KB), Bloom skip share (0.485) equal the original's, and the build share of the query time is 0.467 vs 0.453. On the MasterCI builds before and after ClickHouse#124907 (70906e3 -> 1d76716), which CI shows moving query 13 1.9-2.1x, the copy keeps 95% of the original's speedup (2.13x vs 2.19x, both seat orders); the build before ClickHouse#124907 gets the cache setting as an inert custom setting through the rig's config only. Query 2 (1.34 s amd, 1.39 s arm) stays: a copy on 15M rows writes 16 parts of 15.0 MB instead of 30 of 16.0 MB, outside the +-5% bound for bytes per part. The copy is projected at 0.81 s on amd and 0.67 s on arm: about 32 s (amd) and 27 s (arm) less query time per master perf job. Related: ClickHouse#129258 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold review of the change (2 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261115-154900 |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261115-133115 |
Contributor
|
Workflow [PR], commit [52febd4] Summary: ✅
AI ReviewSummaryPR #131824 disables query 13 in Missing context / blind spots
Final Verdict✅ Approve |
27 of 39 tasks
alexey-milovidov
approved these changes
Nov 16, 2026
Merged
via the queue into
ClickHouse:master
with commit Nov 16, 2026
1adbd31
570 of 572 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Query 13 of
external_set.xml(a set of 10M tuples of four hashes, 32-byte keys) takes 3.43 s on MasterCI amd and 2.83 s on arm, above the perf report's 2 s single-run limit. About 2 s is the single-threaded build of the set; the rest are lookups reading most blocks from the file, as the set is 2.4 times its 128 MiB cache: what the query measures.No existing query number or text changes: 1 query is disabled and 1 smaller copy appended as 14. It runs the same text at a quarter of its scale: a set of 2.5M tuples with
max_bytes_for_external_set_cache = 33554432(a quarter of the default) and 2.5M lookups in chunks ofmax_block_size = 16352(a quarter of 65409). So the set is again 2.4 times its cache and each chunk needs as large a share of its blocks: locally the cache hit share (0.39), block accesses per key (0.42) and bytes per block read (11.7 KB) equal the original's.On the MasterCI builds before and after #124907, which CI shows moving query 13 1.9-2.1x, the copy keeps 95% of the original's speedup (2.13x vs 2.19x), with the local 480 MiB L3 capped to one way (30 MiB; CI's VMs share theirs with neighbours: 105 MB on amd, 36 MB on arm). The build before #124907 lacks the cache setting, so its server registers it as an inert custom setting.
Query 2 (1.34 s amd, 1.39 s arm) stays: a copy on 15M rows writes 16 parts of 15.0 MB instead of 30 of 16.0 MB.
The copy should take about 0.81 s on amd and 0.67 s on arm: about 30 s less query time per master perf job. The copy restarts the history of query 13.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131824]
Version info
26.11.1.2407-master(included in26.11and later)