Repository navigation
Conversation
The `Nullable(UInt64)` expansions of the three `{table}` queries of
`tests/performance/jit_sort.xml` (query indexes 2, 3, 6, 7, 10, 11) have
MasterCI medians of 1.10-1.25 s on amd and 1.13-1.28 s on arm: each sorts
all 10M rows of a 6-column Nullable table. The three elements get
`disabled="1"` (texts and numbers 0-11 unchanged) and are appended after
the last query: verbatim over the two plain tables (`{plain_table}`, the
sub-second expansions the marker also stops) and over the two Nullable
tables (`{nullable_table}`) with `WHERE key % 2 = 0`, which keeps half of
every block. History numbers 14-25 are fresh; queries 12 and 13 are
untouched. No existing query number or text changes: 3 queries (12
numbered entries) are disabled and 6 (12 entries) are appended.
Local perf.py A/B on official MasterCI amd_release builds, 8 pinned cores:
- Size: the copies run at 0.49-0.55 of their originals (projected CI
medians 550-690 ms amd, 566-702 ms arm); A/A noise not worse.
- Structure at 8 and 12 threads: the same PartialSortingTransform /
MergeSortingTransform / MergingSortedTransform instance counts, half of
the sorted rows (0.500), the same peak threads, the same EXPLAIN PLAN
steps (the filter is a PREWHERE of the read step), the same number of
read chunks (Memory 153, MergeTree 611-614).
- Sensitivity on the four MasterCI build pairs that moved these queries on
CI by 11-18% (3a52fa3 -> 2f953ee and 562bdc1 -> 4f8c9f2 on the one-key
sorts, 1b7e6cd -> ca1dbe5 and abd6a6d -> 8f53dd7 on the 3- and 5-key
sorts): every copy moves like its original (e.g. 1b7e6cd -> ca1dbe5:
originals 1.27-1.31x, copies 1.22-1.30x; abd6a6d -> 8f53dd7: 0.78x,
0.77-0.81x), and on the other class's pairs the copies stay within
the noise of their originals.
Saving: about 30 s (amd) / 31 s (arm) per master perf job.
Related: ClickHouse#129258
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 2 findings; 1 full pass), plus my own review (2 nits on the PR text).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261115-061501 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261115-011300 |
|
Workflow [PR], commit [f6decd6] Summary: ❌
AI ReviewSummaryPR #131761, reviewed at Missing context / blind spots
Final VerdictStatus: ✅ Approve. No new inline comments are needed. |
CI finish ledger - f6decd6Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The other CIDB Session id: cron:our-pr-ci-monitor:20261115-093012 |
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The
Nullable(UInt64)tables of the three{table}queries ofjit_sort.xml(query indexes 2, 3, 6, 7, 10, 11) take 1.10-1.25 s on MasterCI amd and 1.13-1.28 s on arm. Each sorts all 10M rows of a 6-column Nullable table; the perf harness setscompile_sort_description = 0, so this is the interpreted sort.No existing query number or text changes: 3 queries (12 numbered entries) are disabled and 6 (12 entries) are appended, as 14-25. They run verbatim over the two plain tables (
{plain_table}: the sub-second expansions the marker also stops) and over the two Nullable tables ({nullable_table}) withWHERE key % 2 = 0, which keeps half of every block.Measured with
perf.pyon official MasterCI release builds, 8 pinned cores: the Nullable copies take 0.49-0.55 of their originals' time, about 550-680 ms on amd and 570-700 ms on arm, so about 30 s less query time per master perf job. At 8 and 12 threads they run the same sort processors, the same plan steps (the filter becomes a PREWHERE of the read) and the same number of read blocks, with half of the sorted rows. On the four MasterCI build pairs that moved these queries by 11-18% on CI, the copies move like the originals: 3a52fa3 -> 2f953ee makes the one-key originals 1.16-1.18x slower and their copies 1.14-1.18x, 1b7e6cd -> ca1dbe5 the 3- and 5-key ones 1.27-1.31x and 1.22-1.30x, abd6a6d -> 8f53dd7 0.78x and 0.77-0.81x.Query 13 (
hits_100m_single, 1.24 s on amd, 0.75 s on arm) stays: a copy onhits_10m_singlewould run about 0.08 s on arm, under the 0.1 s the perf README asks for. 14 queries stay enabled, as before. The plain copies restart the history of six sub-second queries (0, 1, 4, 5, 8, 9).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131761]