Skip to content

ClickHouse: enable quick_startup - #3534

Merged
alexey-milovidov merged 8 commits into
mainfrom
quick-startup
Nov 24, 2026
Merged

alexey-milovidov merged 8 commits into
mainfrom
quick-startup

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Sets the quick_startup server setting (ClickHouse/ClickHouse#131257, in master since 26.11.1.2212) through config.d/quick_startup.yaml in the entries that run a ClickHouse server: clickhouse, clickhouse-memory, clickhouse-web, json/clickhouse, pg_clickhouse.

It skips the optional startup work: mlock and remapping of the executable, its integrity check, and the environment checks that only feed system.warnings. With a cold page cache, the mlock and 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 (the versions/ benchmark) ignore the unknown key.

Related: #3264

🤖 Generated with Claude Code

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>
@alexey-milovidov
alexey-milovidov deployed to benchmark-approval November 24, 2026 00:40 — with GitHub Actions Active

@neuroalexey neuroalexey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 own config.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 add quick_startup: true there too.

Automated review by neuroalexey

@alexey-milovidov alexey-milovidov added the machine:all PR benchmark on every machine type label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Results for clickhouse-web are ready for: c6a.4xlarge.
The result files are committed as 54050cb.
Preview of the benchmark page with these results · Comparison with the previous results
The run of clickhouse-memory on c6a.4xlarge did not produce results.

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`).
@github-actions

Copy link
Copy Markdown
Contributor

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).

@neuroalexey neuroalexey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Results for clickhouse are ready for: c6a.4xlarge.
Results for pg_clickhouse are ready for: c6a.4xlarge.
The result files are committed as 9819db5.

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
@alexey-milovidov
alexey-milovidov deployed to benchmark-approval November 24, 2026 18:59 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

The run of clickhouse on t3a.small did not produce results.
The run of clickhouse-memory on c6a.2xlarge did not produce results.
The run of clickhouse-memory on c6a.4xlarge did not produce results.
The run of clickhouse-memory on c6a.large did not produce results.
The run of clickhouse-memory on c6a.xlarge did not produce results.
The run of clickhouse-memory on c8g.4xlarge did not produce results.
The run of clickhouse-memory on t3a.small did not produce results.
The run of pg_clickhouse on t3a.small did not produce results.

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`).
@github-actions

Copy link
Copy Markdown
Contributor

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).

…c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl)
@github-actions

Copy link
Copy Markdown
Contributor

Results for clickhouse are ready for: c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
Results for clickhouse-web are ready for: c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
Results for pg_clickhouse are ready for: c6a.2xlarge, c6a.4xlarge, c6a.large, c6a.metal, c6a.xlarge, c7a.metal-48xl, c8g.4xlarge, c8g.metal-48xl.
The result files are committed as f54c57c.
Preview of the benchmark page with these results · Comparison with the previous results

Logs:

@neuroalexey

Copy link
Copy Markdown

Status: Please verify — clickhouse-web cold runs are slower too

The new clickhouse-web cold runs are 15 to 28% slower than main's runs of the same day, on all 8 machines. On c6a.4xlarge, the cold geomean goes from 0.64 to 0.75 sec (clickhouse-web/results/20261124/c6a.4xlarge.json). Hot runs are unchanged.

The build does not explain it. This PR's first c6a.4xlarge run (54050cb, 01:43 UTC) also had 0.75 sec. Main's run at 02:45 UTC, without quick_startup, had 0.64 sec.

Plain clickhouse goes the other way: cold is 21 to 54% faster on 7 of 8 machines. Is the slowdown for clickhouse-web and JSONBench expected?

I ran main's validator on this head: RC 0.

Automated review by neuroalexey

…l, c7a.metal-48xl, c8g.metal-48xl, t3a.small)
@github-actions

Copy link
Copy Markdown
Contributor

Results for clickhouse-memory are ready for: c6a.metal, c7a.metal-48xl, c8g.metal-48xl.
Results for clickhouse-web are ready for: t3a.small.
The result files are committed as 1b77ad0.
Preview of the benchmark page with these results · Comparison with the previous results

Logs:

@alexey-milovidov
alexey-milovidov merged commit 0e2ef17 into main Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

machine:all PR benchmark on every machine type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants