Repository navigation
Conversation
Register external host buffers with SPDK when USE_NOF and MC_STORE_REGISTER_SPDK=1 are enabled, and unregister them on release. Require 2 MiB-aligned addresses and sizes. Signed-off-by: Cage Chen <cage@arcfra.com>
cage-goat
requested review from
ShangmingCai,
UNIDY2002,
XucSh,
YiXR,
alogfans,
staryxchen,
stmatengss and
ykwd
as code owners
October 9, 2026 09:37
|
Test results for the same approach (SPDK registration in Setup: vLLM + LMCache (mooncakestore connector,
|
This branch has not been deployed
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.
Fixes #3131
Description
External buffers registered through
register_buffer()were registered with the Transfer Engine but remained invisible to SPDK, causing NoF-over-RDMA I/O to fail withNo translation for ptr.This change adds SPDK registration and unregistration for external host buffers when
USE_NOFandMC_STORE_REGISTER_SPDK=1are enabled. Buffers must be hugepage-backed, with 2 MiB-aligned addresses and sizes.Addresses the registration gap reported in #3131. This is a focused fix using the existing
SpdkWrapper, independent of the broader NoF/SPDK refactoring in #3424.Module
mooncake-store)Type of Change
How Has This Been Tested?
Manual validation used a single RDMA host with an 8 GiB SPDK Malloc
bdev (4 KiB blocks). LMCache included #5393 and the replica-config
forwarding patch, with pure-NoF replicas (
replica_num=0,nof_replica_num=1).lmcache bench l2with hugepages, 32 keys, 256 KiB per key,3 rounds, and
--no-skip-verify.MC_STORE_REGISTER_SPDK=0, reproducedNo translation for ptr.With it enabled, all 96 stores and 96 loads succeeded, and all
32 keys in the final round passed data verification.
buffer; both returned 0.
lmcache_drivenmode with a 2 GiB hugepageL1. Inference succeeded and stored 16 KV chunks (448 MiB) in NoF.
Checklist
./scripts/code_format.shAI Assistance Disclosure
OpenAI Codex assisted with implementation, review, formatting, and validation.