Skip to content

Bump clickhouse to latest patch.#10431

Merged
jmcarp merged 1 commit into
mainfrom
jmcarp/bump-clickhouse
May 13, 2026
Merged

Bump clickhouse to latest patch.#10431
jmcarp merged 1 commit into
mainfrom
jmcarp/bump-clickhouse

Conversation

@jmcarp
Copy link
Copy Markdown
Contributor

@jmcarp jmcarp commented May 11, 2026

We found in https://github.com/oxidecomputer/customer-support/issues/1101 that clickhouse runs a huge number of thread renames, which consure the majority of cpu time on some workloads. Since we don't need the debugging feature that this renaming supports, we patched out os-level thread renames in oxidecomputer/garbage-compactor#33. This patch updates omicron to fetch the latest clickhouse archive from s3. Note that we also introduce a hash-based suffix to the clickhouse version to represent changes in oxide-specific patches applied to the clickhouse source version.

Note that we also merged a more principled fix into upstream clickhouse for this issue: ClickHouse/ClickHouse#104410. Once we upgrade to a current clickhouse version, we'll drop the patch in garbage-compactor.

h/t as usual @wfchandler and @JustinAzoff for the investigation.

We found in oxidecomputer/customer-support#1101 that
clickhouse runs a huge number of thread renames, which consure the majority of
cpu time on some workloads. Since we don't need the debugging feature that this
renaming supports, we patched out os-level thread renames in
oxidecomputer/garbage-compactor#33. This patch updates
omicron to fetch the latest clickhouse archive from s3. Note that we also
introduce a hash-based suffix to the clickhouse version to represent changes in
oxide-specific patches applied to the clickhouse source version.

Note that we also merged a more principled fix into upstream clickhouse for
this issue: ClickHouse/ClickHouse#104410. Once we
upgrade to a current clickhouse version, we'll drop the patch in
garbage-compactor.

h/t as usual @wfchandler and @JustinAzoff for the investigation.
@jmcarp jmcarp requested a review from bnaecker May 13, 2026 19:35
@jmcarp
Copy link
Copy Markdown
Contributor Author

jmcarp commented May 13, 2026

Ok, this is ready for review. I ran this on @sudomateo's , and confirmed that oximeter/clickhouse are working, and that pthread_setname_np isn't being hit.

@jmcarp jmcarp merged commit d7680d1 into main May 13, 2026
16 checks passed
@jmcarp jmcarp deleted the jmcarp/bump-clickhouse branch May 13, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants