Repository navigation
Conversation
aclamk
approved these changes
Nov 18, 2026
5 of 14 tasks
Contributor
|
This PR has been added to wip-jaya-bs-testing-18-11-2026. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
TwoQBufferCacheShard::_move() removes the buffer from the source shard, links it on this shard's list and adds its length back through b->cache_age_bin, which still points at the source shard's age bin. The moved bytes stay counted in the source shard's age bins until the buffer is next touched, and from then on two shards update one counter under two different locks. Point cache_age_bin at this shard's newest bin before adding, as LruBufferCacheShard::_move() does through _add(). Introduced by 5635183 ("common/PriorityCache: Implement Cache Age Binning", v17.1.0) on the move path from 9732b6c ("os/bluestore: move cached items around on collection split", v12.0.1). Fixes: https://tracker.ceph.com/issues/82910 Signed-off-by: Ming Lei <[email protected]>
Two 2Q shards, one clean buffer added to the first, then _move() to the second as Collection::split_cache() does. The source shard's sum_bins() must drop to zero and the destination's must count the buffer; before the fix the source keeps the bytes and the destination shows none while its _get_bytes() already reports the buffer. Fixes: https://tracker.ceph.com/issues/82910 Signed-off-by: Ming Lei <[email protected]>
ming1
force-pushed
the
wip-82910-twoq-move-age-bin
branch
from
November 26, 2026 15:03
dbd8ce3 to
017732c
Compare
Contributor
|
Closed in favor of: 73719 |
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.
TwoQBufferCacheShard::_move()removes a buffer from the source shard, links it on the destination's list, and then adds its length back throughb->cache_age_bin, which still points at the source shard's age bin. After a PG split the moved bytes stay counted in the source shard's age bins until the buffer is next touched, and until then the destination shard updates that counter under its own lock while the source shard updates it under another.LruBufferCacheShard::_move()already re-bins through_add().The fix points
cache_age_binat the destination's newest bin before the add. The second commit adds a gtest tounittest_bluestore_typesthat fails before the fix (source bins 4096, destination 0) and passes after.Introduced by 5635183 ("common/PriorityCache: Implement Cache Age Binning", v17.1.0).
Fixes: https://tracker.ceph.com/issues/82910
Checklist