-
Notifications
You must be signed in to change notification settings - Fork 207
fix(l1): bound RocksDB index and filter block memory #6735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
67f3492
Store RocksDB index and bloom-filter blocks in the shared block cache…
ilitteri 32ffd47
Expose the RocksDB shared block cache size as a CLI option
ilitteri bf0a649
chore(l1): fix rustfmt import order
iovoid c2b8290
Merge remote-tracking branch 'origin/main' into fix/rocksdb-bounded-i…
iovoid 6e3af68
enable rocksdb stats to measure cache hit rates
iovoid 412d770
tune rocksdb block cache default to 12GiB
iovoid e5f1a8b
keep rocksdb stats off in production
iovoid af5d322
remove rocksdb stats from production path
iovoid f235e8e
fix(ci): sync CLI.md help, fix rocksdb test args
iovoid 8937102
Merge branch 'main' into fix/rocksdb-bounded-index-filter-memory
iovoid 3e4860b
Merge branch 'main' into fix/rocksdb-bounded-index-filter-memory
MegaRedHand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set_cache_index_and_filter_blocks_with_high_priority(true)(paired with ahigh_pri_pool_ratioon the cache), all non-L0 filter/index blocks compete equally with data blocks in the LRU. Under a read-heavy workload that touches many L1+ SST files (e.g. state queries or a fast-sync replay), data blocks can displace filter/index blocks from the cache, increasing filter misses and triggering extra disk reads — the same class of performance degradation the PR fixes for the baseline. Adding high-priority routing for index/filter blocks gives the eviction policy a knob to keep them resident without growing the cache.Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the other, those two options have default values