Trim size of CachedOnDiskReadBufferFromFile structure 50x#96098
Merged
azat merged 3 commits intoClickHouse:masterfrom Feb 5, 2026
Merged
Trim size of CachedOnDiskReadBufferFromFile structure 50x#96098azat merged 3 commits intoClickHouse:masterfrom
azat merged 3 commits intoClickHouse:masterfrom
Conversation
…BufferFromFile Though compiler should be smart enought, better to list them explicitly to avoid doubts
Contributor
|
Workflow [PR], commit [a729564] Summary: ❌
|
alexey-milovidov
approved these changes
Feb 5, 2026
With 64 byte alignment and 1144 counters (as of now) the Counters object took ~73KiB, and I saw that CachedOnDiskReadBufferFromFile eats ~90GiB of RAM because of this.
caa4e77 to
a729564
Compare
kssenii
approved these changes
Feb 5, 2026
Merged
via the queue into
ClickHouse:master
with commit Feb 5, 2026
3561bc3
130 of 133 checks passed
This was referenced Feb 5, 2026
Merged
Merged
robot-clickhouse
added a commit
that referenced
this pull request
Feb 6, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Feb 6, 2026
clickhouse-gh bot
added a commit
that referenced
this pull request
Feb 6, 2026
Backport #96098 to 26.1: Trim size of CachedOnDiskReadBufferFromFile structure 50x
clickhouse-gh bot
added a commit
that referenced
this pull request
Feb 6, 2026
Backport #96098 to 25.11: Trim size of CachedOnDiskReadBufferFromFile structure 50x
azat
added a commit
that referenced
this pull request
Feb 6, 2026
Backport #96098 to 25.12: Trim size of CachedOnDiskReadBufferFromFile structure 50x
clickhouse-gh bot
added a commit
that referenced
this pull request
Feb 6, 2026
Backport #96098 to 25.8: Trim size of CachedOnDiskReadBufferFromFile structure 50x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Trim size of CachedOnDiskReadBufferFromFile structure 50x
With 64 byte alignment and 1144 counters (as of now) the Counters object took ~73KiB, and I saw that CachedOnDiskReadBufferFromFile eats ~90GiB of RAM because of this.
And those counters are used only for debugging (
filesystem_cache_log), but as @kssenii told she hasn't been used them for a long time