Repository navigation
ClickHouse: enable quick_startup - #3534
Conversation
Set the `quick_startup` server setting in the entries that run a ClickHouse server (clickhouse, clickhouse-memory, clickhouse-web, json/clickhouse, pg_clickhouse). It skips `mlock` of the executable, its integrity check, and the environment checks for `system.warnings`, which take about 3 s of the 5.5 s cold startup on c6a.4xlarge. Related: ClickHouse/ClickHouse#131257 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
neuroalexey
left a comment
There was a problem hiding this comment.
Status: Looks good — the five entries read the new file
I checked the five entries. Each starts the server with sudo clickhouse start, which reads /etc/clickhouse-server/config.d.
Optional, not blocking:
- Seven more entries run a server (
clickhouse-parquet*,clickhouse-datalake*,clickhouse-iceberg,clickhouse-vortex*). They read their ownconfig.yaml(clickhouse-parquet/start:6), so they keep about 5.3 sec startup (clickhouse-parquet/results/20261123/c6a.4xlarge.json:14: 5.24). Let's addquick_startup: truethere too.
Automated review by neuroalexey
|
Results for Logs:
|
Collected from the sink by `json/collect-new-results.sh`. Runs: clickhouse/100m, clickhouse/10m, clickhouse/1m. The result files are generated from `sink.data` (rows with `kind: json-benchmark`, sent by the machines launched by `json/run-benchmark.sh`).
|
Collected from the sink by Runs: clickhouse/100m, clickhouse/10m, clickhouse/1m. The result files are generated from |
neuroalexey
left a comment
There was a problem hiding this comment.
Status: Please verify — cold runs in JSONBench are 0.1 sec slower
Every cold run in the new json/clickhouse results is 0.08 to 0.12 sec slower than on main's 2026-11-23 run. At 1m, Q1 goes from 0.017 to 0.106 sec (json/clickhouse/results/20261124/m6i.8xlarge_bluesky_1m.json:19). Hot runs are unchanged. The delay is the same at 1m, 10m and 100m, so it does not depend on the data.
Not sure it is this PR, because the version also changed from 26.12.1.217 to 26.12.1.343. But the mlock fits. Without it, the first query after the restart faults in the code pages. Then part of the startup time moves into every cold run. Is it expected?
I ran main's validator on this head: RC 0. clickhouse-web starts in 2.5 sec instead of 6.0 sec. The missing clickhouse-memory result on c6a.4xlarge is the known MEMORY_LIMIT_EXCEEDED (clickhouse-memory/README.md:36).
Automated review by neuroalexey
|
Results for Logs:
Preview of the benchmark page with these results · Comparison with the previous results |
# Conflicts: # clickhouse-web/results/20261124/c6a.4xlarge.json # clickhouse/results/20261124/c6a.4xlarge.json
|
The run of Logs:
|
Collected from the sink by `json/collect-new-results.sh`. Runs: clickhouse/100m, clickhouse/10m, clickhouse/1m. The result files are generated from `sink.data` (rows with `kind: json-benchmark`, sent by the machines launched by `json/run-benchmark.sh`).
|
Collected from the sink by Runs: clickhouse/100m, clickhouse/10m, clickhouse/1m. The result files are generated from |
…c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl)
|
Results for Logs:
|
Status: Please verify —
|
…l, c7a.metal-48xl, c8g.metal-48xl, t3a.small)
|
Results for Logs:
|
Sets the
quick_startupserver setting (ClickHouse/ClickHouse#131257, in master since26.11.1.2212) throughconfig.d/quick_startup.yamlin the entries that run a ClickHouse server:clickhouse,clickhouse-memory,clickhouse-web,json/clickhouse,pg_clickhouse.It skips the optional startup work:
mlockand remapping of the executable, its integrity check, and the environment checks that only feedsystem.warnings. With a cold page cache, themlockand the integrity check fault in the 497 MiB code segment one page at a time. On c6a.4xlarge this cuts the measured startup time from about 5.5 s to 2.3 s. Older versions (theversions/benchmark) ignore the unknown key.Related: #3264
🤖 Generated with Claude Code