Repository navigation
squid: os/bluestore: Fix problem with onode cache causing stalls - #70491
Merged
Merged
Conversation
Limits how many onodes can be evicted from OnodeCacheShard in one go. Added bluestore_cache_meta_drop_limit that controls how fast onodes can be evicted from cache. Fixes: https://tracker.ceph.com/issues/77268 Signed-off-by: Adam Kupczyk <[email protected]> (cherry picked from commit 305c0f8)
Add bluestore_cache_meta_evict_in_autotune configurable. It allows to evict onodes as part of autotune process. This makes onode CacheShards size adapt to PriorityCache Meta memory allocation. Fixes: https://tracker.ceph.com/issues/77268 Signed-off-by: Adam Kupczyk <[email protected]> (cherry picked from commit 42b2986)
There are 2 cases when Collection::split_cache is used: 1) Merge Collections. It this case we get more elements in dest collection, but we do not want to trim by force as it might cause stall. 2) Split Collection Source cache is getting thinner, and dest cache is growing. Similarly, trimming dest will cause stall. Decision: It is better to not trim forcibly and relay on gradual trimming from MempoolThread or client IO. Fixes: https://tracker.ceph.com/issues/77268 Signed-off-by: Adam Kupczyk <[email protected]> (cherry picked from commit d2f2d86)
Config Diff Tool Output+ added: bluestore_cache_meta_evict_in_autotune (global.yaml.in)
+ added: bluestore_cache_meta_evict_limit (global.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
Contributor
|
This PR has been added to wip-bharath1-testing-20260724.101528-squid. |
Contributor
ifed01
approved these changes
Aug 4, 2026
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.
Elements in onode cache shards are evicted when new element is inserted into the cache.
In rare cases of cluster inactivity cache can be reduced, but not evicted.
Adjusting size at once will cause stall first time cache shard is accessed.
The solution is to dampen the effect by evicting only few onodes at a time.
In addition, mempool_thread gets ability to evicts some onodes right after PriorityCache Meta size is changed.
This is backport of: #65792
Fixes: https://tracker.ceph.com/issues/77268
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.