Repository navigation
Run the JSON(max_dynamic_paths = 4) and Dynamic queries of generate_random_json on half and a third of their rows - #132277
Conversation
…ate_random_json` on half and a third of their rows No existing query number or text changes: 2 queries are disabled and 2 copies appended as 5 and 6. Query 1 (`JSON(max_dynamic_paths = 4)`, 3M rows) and query 2 (`Dynamic`, 300M rows) take 1.30 / 1.99 s on MasterCI amd and 0.95 / 1.44 s on arm: generateRandom work on 8 / 12 threads, a third of query 1's CPU being the shared reference counter contention that ClickHouse#122464 removes. The copies are the same queries with LIMIT 1500000 and LIMIT 100000000: the same seeds, schema and block size (1003 / 27777 rows), so each stream generates fewer identical blocks and the work per row is unchanged. On the official master builds 2731aee and d076efd, per-row user time of the copies is 0.975-1.000 of the originals' (clickhouse local) and 0.999-1.008 under perf.py; query 1's copy keeps 0.951 / 0.987 of the original's per-row CPU growth from 1 to 8 threads (the contention), query 2's copy stays at 1.00-1.02 (none). Projected copy medians 0.65 / 0.67 s amd and 0.48 s arm: about 24 s (amd) and 17 s (arm) less query time 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; 0 findings), plus my own review of the same diff (1 nit, fixed in the PR description). Checked: Session id: cron:clickhouse-review-slot-10:20261117-070900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261117-064800 |
|
Workflow [PR], commit [f0e6f12] Summary: ✅
AI ReviewSummaryPR #132277, head Missing context / blind spots
Final VerdictStatus: ✅ Approve |
86f3303
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Query 1 (
JSON(max_dynamic_paths = 4), 3M rows) and query 2 (Dynamic, 300M rows) ofgenerate_random_json.xmltake 1.30 / 1.99 s on MasterCI amd and 0.95 / 1.44 s on arm. The time isgenerateRandomwork on 8 / 12 threads; about a third of query 1's CPU is the contention on a shared reference counter that #122464 removes.No existing query number or text changes: 2 queries are disabled and 2 copies appended as 5 and 6. The copies are the same queries with
LIMIT 1500000andLIMIT 100000000: the same seeds, schema and block size (1003 and 27777 rows), so each stream generates fewer identical blocks.On two official master builds 7 weeks apart (2731aee, d076efd) the copies take 0.98-1.00 of their originals' user time per row. Query 1's copy keeps 0.95 / 0.99 of the original's growth in per-row CPU from 1 to 8 threads: that growth is the contention the open #122464 removes, which cut the user time to 0.66 amd / 0.67 arm in its CI run. Query 2 has not moved by 5% on both arches in any CI comparison since #107966 added it, so its copy is checked for the same per-row cost and the same absence of contention. Under
perf.pythe copies take 1.00-1.01 of the originals' per-row user time.Projected copy medians: 0.65 / 0.67 s amd, 0.48 s arm; about 24 s (amd) and 17 s (arm) less query time per master perf job. The copies restart the history of 2 queries.
Validation: on the final file
perf.pyruns only queries 0 and 3-6 (also with--max-queries 10), no run trend.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132277]
Version info
26.11.1.2759-master(included in26.11and later)