Skip to content

Add system.jemalloc_profile_text#97218

Merged
antonio2368 merged 11 commits intomasterfrom
system-jemalloc-profile
Feb 23, 2026
Merged

Add system.jemalloc_profile_text#97218
antonio2368 merged 11 commits intomasterfrom
system-jemalloc-profile

Conversation

@antonio2368
Copy link
Copy Markdown
Member

@antonio2368 antonio2368 commented Feb 17, 2026

Changelog category (leave one):

  • Improvement

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

Added system.jemalloc_profile_text table for reading and analyzing jemalloc heap profiles. The output format is controlled by the jemalloc_profile_text_output_format setting (raw, symbolized, or collapsed; default collapsed). Inline frame resolution is controlled by jemalloc_profile_text_symbolize_with_inline (when enabled, inline frames are included at the cost of slower symbolization; when disabled, they are skipped for faster output). For the collapsed format, jemalloc_profile_text_collapsed_use_count controls whether stacks are weighted by live allocation count (true) or live bytes (false, default). This enables easier memory profiling and flame graph visualization of jemalloc heap profiles. Fixes #93248

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Feb 17, 2026

Workflow [PR], commit [a4e5119]

Summary:

job_name test_name status info comment
BuzzHouse (amd_debug) failure
Logical error: Digest does not match (STID: 5029-4dec) FAIL cidb, issue

@clickhouse-gh clickhouse-gh bot added the pr-improvement Pull request with some product improvements label Feb 17, 2026
@antonio2368 antonio2368 force-pushed the system-jemalloc-profile branch from b6eb687 to cfdcf4b Compare February 17, 2026 17:20
@azat
Copy link
Copy Markdown
Member

azat commented Feb 17, 2026

@antonio2368 thank you! BTW what do you think about adding predefined HTTP handlers with flamegraphs as SVGs? With this it is pretty straightforward

@antonio2368
Copy link
Copy Markdown
Member Author

I plan to use this to add flamegraphs to the dashboard created in #97077

@antonio2368 antonio2368 force-pushed the system-jemalloc-profile branch from cfdcf4b to 0ae1793 Compare February 18, 2026 09:07
@antonio2368 antonio2368 force-pushed the system-jemalloc-profile branch 2 times, most recently from 4b7b159 to e0b487d Compare February 18, 2026 15:39
@antonio2368 antonio2368 force-pushed the system-jemalloc-profile branch from e0b487d to e1b8fe8 Compare February 19, 2026 09:20
@antonio2368 antonio2368 force-pushed the system-jemalloc-profile branch from a4878ea to f5c6748 Compare February 20, 2026 09:33
@antonio2368
Copy link
Copy Markdown
Member Author

@azat I just figured we can also get allocation count in collapsed format so I added jemalloc_profile_collapsed_use_count which is disabled by default.

@azat
Copy link
Copy Markdown
Member

azat commented Feb 20, 2026

I just figured we can also get allocation count in collapsed format so I added jemalloc_profile_collapsed_use_count which is disabled by default.

🔝

Rename the system table and all corresponding settings:
- `system.jemalloc_profile` → `system.jemalloc_profile_text`
- `jemalloc_profile_output_format` → `jemalloc_profile_text_output_format`
- `jemalloc_profile_symbolize_with_inline` → `jemalloc_profile_text_symbolize_with_inline`
- `jemalloc_profile_collapsed_use_count` → `jemalloc_profile_text_collapsed_use_count`
- `StorageSystemJemallocProfile` → `StorageSystemJemallocProfileText`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@antonio2368 antonio2368 changed the title Add system.jemalloc_profile Add system.jemalloc_profile_text Feb 23, 2026
@antonio2368 antonio2368 added this pull request to the merge queue Feb 23, 2026
Merged via the queue into master with commit c618d3e Feb 23, 2026
146 of 148 checks passed
@antonio2368 antonio2368 deleted the system-jemalloc-profile branch February 23, 2026 10:29
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 23, 2026
Algunenano pushed a commit to Algunenano/ClickHouse that referenced this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: system.jemalloc_heap_profiler table

3 participants