mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #3503] [TE][UB]: Auto-chunk registrations larger than max_seg_size and split cross-segment transfers #896
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#896
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @staryxchen on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/3503
Parent: #3500
Problem
UB is behind both EFA/CXI and RDMA.
UrmaContext::registerMemoryRegionclampslengthtomax_seg_sizeinstead of splitting into multiple segments. Metadata can advertise more bytes than were actually registered — the same class of bug #2644 fixed for RDMA.BufferDescseams.UbTransport::submitTransferTaskslices byslice_sizeonly. The initialselectDeviceuses the fullrequest.length, so a request that spans two registered segments fails even if individual slices would fit.Until both are fixed, Store must keep splitting UB segments at
max_seg_size.Proposed work
registerLocalMemoryinto<= max_seg_sizesegments and publish oneBufferDescper chunk (do not shrink).BufferDescremainder, similar to RDMASliceLengthCalculator.Test plan
Needs Kunpeng / UB hardware. Suggested coverage:
max_seg_sizeand confirm it is not truncated@github-actions[bot] commented on GitHub (Aug 18, 2026):
Thanks for opening this issue, @staryxchen!
151037142A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide