Repository navigation
fix(umbp): a local eviction round no longer rescans its queued demotions per batch - #783
Merged
Merged
Conversation
…ons per batch ReclaimBackend fetched EvictionCandidates(window), evicted one 64-key batch, then fetched again. A queued demotion keeps its key in the source tier until the transition worker copies it, so every refetch walked past all of them again under the medium's LRU lock: quadratic in the round. With promote_mode move (each DRAM eviction a real copy) an e2e round ran for minutes at 100% CPU, and the SSD tier behind it went unreclaimed until it was full. A round now uses each fetch in full before asking again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 16, 2026
feat(umbp): SSD demote/promote skip staging; promoting reads land in DRAM; 4 GiB staging preset
#776
Merged
TianDi101
added a commit
that referenced
this pull request
Oct 16, 2026
…ce-read-touch # Conflicts: # src/umbp/include/umbp/local/tiers/sharded_ssd_tier.h # src/umbp/include/umbp/local/tiers/ssd_tier.h # src/umbp/local/tiers/sharded_ssd_tier.cpp # src/umbp/local/tiers/ssd_tier.cpp # tests/cpp/umbp/local/test_ssd_segment_reclaim.cpp
TianDi101
added a commit
that referenced
this pull request
Oct 16, 2026
…-ssd-direct-migration # Conflicts: # src/umbp/distributed/peer/backend/ssd_backend.cpp # src/umbp/distributed/pool/peer_pool.cpp # src/umbp/include/umbp/distributed/peer/backend/page_backend.h # src/umbp/include/umbp/distributed/peer/backend/ssd_backend.h
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.
What
PeerPool::ReclaimBackendfetchedEvictionCandidates(window), evicted one 64-key batch, then fetched again. A queued demotion keeps its key in the source tier until the transition worker copies it, so each refetch walked past every queued key again under the medium's LRU lock, which is quadratic in the round. A round now uses each fetch in full before asking again.Why
E2E with
promote_mode: move(DRAM 300 GB / SSD 600 GB, on_read): the evictor thread sat at 100% CPU inPageBackend::EvictionCandidateswith rounds stuck for 16+ minutes. DRAM stayed at 100%, and the SSD behind it went unreclaimed until full, which caused 1.28MSSD write failederrors and 103k demotions dropped after retry.Test
PeerPoolLocalEviction.ARoundDoesNotRescanItsQueuedDemotionsPerBatch: one gated round over 8,000 keys may fetch at most 40 times. The old loop fetches 67 times; this one passes.test_peer_poolpasses 40/40.🤖 Generated with Claude Code