Skip to content

Update jemalloc_internal_defs.h.in for s390x to align with other platforms - #130053

Merged
alexey-milovidov merged 2 commits into
masterfrom
continue-pr-129817-s390x-jemalloc-defs
Nov 8, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
continue-pr-129817-s390x-jemalloc-defs

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Update jemalloc_internal_defs.h.in for s390x to align with other platforms.

This supersedes #129817 by @jonathan-albrecht-ibm. The original commit is kept unchanged, so authorship is preserved. The only addition is a merge of the current master. The original PR could not be updated because maintainer edits are disabled on the fork, and its CI failures came from unrelated issues (05515_global_subquery_projection_where is fixed on master by 1cfc5bb2e4da, and Upgrade check failed on a GitHub API 504).

The s390x jemalloc_internal_defs.h.in hasn't been updated in a while and is missing the JEMALLOC_CONFIG_MALLOC_CONF templated value. Some formatting and defaults differ from other platforms for no known reason, so they are updated to match. Whitespace is also cleaned up.

The values changed to match other platforms are:

/* #undef JEMALLOC_HAVE_SECURE_GETENV */
#define JEMALLOC_PAGEID
#define JEMALLOC_GLIBC_MALLOC_HOOK
#define JEMALLOC_GLIBC_MEMALIGN_HOOK
#define JEMALLOC_CONFIG_MALLOC_CONF "@JEMALLOC_CONFIG_MALLOC_CONF@"
/* #undef JEMALLOC_ENABLE_CXX */

Related: #129817

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update jemalloc_internal_defs.h.in for s390x to align with other platforms.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/130053]

Version info

  • Merged into: 26.11.1.1662-master (included in 26.11 and later)

@clickhouse-gh

clickhouse-gh Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9e9e973]

Summary: ✅


AI Review

Summary

PR #130053, reviewed at 9e9e973ac7ae5c72ef91f2165ddddae3f3ed2012, aligns the s390x jemalloc configuration with the other Linux targets and applies the shared runtime defaults through JEMALLOC_CONFIG_MALLOC_CONF. No blocker or major findings; approve with a changelog wording nit. No new inline findings were posted.

PR Metadata

Improvement matches the runtime behavior change. The required changelog entry is present, but describes an internal header update without explaining the user impact. Suggested replacement:

Apply the standard jemalloc runtime configuration on s390x, including per-CPU arenas and allocation profiling controlled by ClickHouse settings.

Missing context / blind spots
  • ⚠️ Native s390x execution was not independently rerun. The author reports successful local testing of the unchanged patch in PR #129817. At review time, the current CI workflow was still running and Build (s390x) was pending. A completed target build and startup/profiling smoke results would close this verification limit.
Findings

💡 Nits

  • PR description, changelog entry: describe the s390x allocator behavior users gain, using the replacement above.
Final Verdict

✅ Approve — no code changes requested. The changelog wording is a minor cleanup; target-platform CI remains pending.

@clickhouse-gh clickhouse-gh Bot added pr-improvement Pull request with some product improvements submodule changed At least one submodule changed in this PR. comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. labels Nov 8, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 9e9e973ac with master fcdc923b9 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of 46ab3dad2; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@alexey-milovidov alexey-milovidov self-assigned this Nov 8, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit 4f3ed33 Nov 8, 2026
375 of 376 checks passed
@alexey-milovidov
alexey-milovidov deleted the continue-pr-129817-s390x-jemalloc-defs branch November 8, 2026 16:13
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 8, 2026
@jonathan-albrecht-ibm

Copy link
Copy Markdown
Contributor

Thanks for reviewing and merging in master @alexey-milovidov.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants