Repository navigation
feat(umbp): BatchTouch counts SSD copies and hands the tier only keys it holds - #882
Merged
Merged
Conversation
isytwu
force-pushed
the
feat/umbp-touch-eviction-class
branch
from
November 9, 2026 07:35
0e790f1 to
b0fea45
Compare
isytwu
force-pushed
the
feat/umbp-touch-ssd-tier
branch
from
November 9, 2026 07:35
177362b to
6e60a7d
Compare
isytwu
marked this pull request as ready for review
November 9, 2026 09:10
isytwu
force-pushed
the
feat/umbp-touch-eviction-class
branch
from
November 9, 2026 09:44
b0fea45 to
62046b7
Compare
isytwu
force-pushed
the
feat/umbp-touch-ssd-tier
branch
from
November 9, 2026 09:44
6e60a7d to
a49b184
Compare
Collaborator
|
This PR targets |
… it holds #791 gave the SSD tier a Touch for lookups, and BatchTouch reaches it too, but SsdBackend::Touch counts none of what it renews, and PeerSsdManager::Touch hands the tier every key it is given, so a BatchTouch of DRAM-resident prefixes makes the tier look each one up under the lock its reads and writes take. The manager now renews only the keys a read would find there -- held, and not mid-eviction -- passes only those to the tier, and returns how many; SsdBackend returns that, so BatchTouch counts the SSD tier's copies. Tests cover the manager and the backend's count, and the tier's own Touch, which had none: segment order, sharded routing, and touches racing reads, writes and evictions.
A read-only follower is a separate SSDTier with its own in-memory index, and Touch writes nothing to disk, so the follower's touch could never move the owner's order: the check held whatever Touch did.
isytwu
force-pushed
the
feat/umbp-touch-ssd-tier
branch
from
November 10, 2026 17:03
7e408ba to
44e15c8
Compare
Contributor
|
GPU CI for
Test groups (the steps that run in those jobs): umbp. Lanes follow the changed files. Adding |
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.
#791 gave the SSD tier a
Touchfor lookups (SsdBackend->PeerSsdManager->ShardedSsdTier/SSDTier), and #779'sBatchTouchreaches it too. Two things are left for BatchTouch:SsdBackend::Touchcounts none of what it renews, soBatchTouch's count leaves out the SSD tier's copies.PeerSsdManager::Touchhands the tier every key it is given. A lookup passes only the keys it found, but aBatchTouchof DRAM-resident prefixes makes the tier look each one up underSSDTier::mu_, the lock its reads and writes take. It also renews a key mid-eviction, which a read already misses.This makes
PeerSsdManager::Touchrenew only the keys a read would find there (held, and not mid-eviction), pass only those to the tier, and return how many;SsdBackend::Touchreturns that, soBatchTouchcounts the SSD tier's copies, and its docs say so. The tier's ownTouch(#791) is unchanged; this PR adds its first tests.Measured
Kimi-K3 vLLM 1P1D DCP8, c70, standalone UMBP server on the prefill node with 1799 GB DRAM and a 1.2 TB SSD tier, AgentX trace, one hour of profiling per run, MI355X (smci355); the same build with and without the first revision of this PR (BatchTouch reaching the SSD tier, only the keys it holds passed on), on the same nodes back to back:
No difference beyond run-to-run noise: repeats of one configuration on one node pair differ by 0.3–0.45% in throughput and 2–5% in TTFT p50. At this capacity the DRAM touch (#779) already keeps the prefixes the GPU uses in DRAM, so few SSD-resident objects are in use. The change makes the touch behave like a read on every medium; it is not a throughput change.
Testing
5dc1f368(feat(umbp): BatchTouch, so callers can report KV hits served by an upper tier #779 merged) with the patch unchanged: all 56 UMBP C++ test binaries pass on a host with RDMA, 745 gtest cases, and the SSD touch tests pass 20 times in a row (the race test 5 times). One of that host's eight ionic NICs had dropped off the bus, and its bridge's zeroed bus numbers abort PCI topology detection with or without this PR; the test container saw that bridge with its bus numbers restored, and the tests ran on the other seven NICs. Before the rebase, on main7c27c146with feat(umbp): BatchTouch, so callers can report KV hits served by an upper tier #779, all 56 binaries passed as well (742 cases); one case skips on its own condition (DisablingKeyHandlesAlsoStopsTheServerRememberingruns only withUMBP_KEY_HANDLE_SLOTS=0). New:PeerSsdEviction.TouchRefreshesLruAsAReadDoes,PeerSsdEviction.TouchReachesATierThatOrdersItsOwnEviction(only held keys reach the tier; a key mid-eviction is skipped),SsdBackendTest.TouchCountsTheKeysTheTierHolds, and three of the tier's ownTouch:SegmentReclaimTest.TouchCountsAsAnAccess(segment order, unknown keys),ShardedTouchReachesTheShardHoldingEachKey,TouchesRaceReadsEvictionsAndWrites(a toucher, a reader and an evicting writer for 2 s: no bad read, no unknown key in the recency list). WithPeerSsdManager::Touchas fix(umbp): a lookup renews the keys it finds, so eviction spares them until the load #791 wrote it (the count kept), onlyTouchReachesATierThatOrdersItsOwnEvictionfails. Repeated with no failure:PeerSsdEviction.Touch*50 times, the SSD backend's touch and lookup tests 20 times, the race test 10 times and the other two tier tests 20 times. clang-format 20.1.8 is clean.5dc1f368with this PR:pytest tests/python/umbp131 passed;umbp_prim_ci.pyPASS with and without a master.