mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #1754] [Bug]: Transfer Engine eRDMA register memory failed #509
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#509
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 @easonyang1010 on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/1754
Bug Report
when I deployed a 3p1d service, 2p1d is fine, 1p had some error
I0326 14:21:37.463763 14940 transfer_metadata_dump.cpp:51] Failed to get segment descriptor for segment 10.53.4.57:16155 address 0x7f46080e8000--0x7f46080f0000...E0326 14:23:05.675921 18944 rdma_context.cpp:265] Failed to register memory 0x7f105035d000: Input/output error [5]...W0326 14:23:05.734648 1307 rdma_transport.cpp:400] RdmaTransport: Failed to register memory: addr 0x7f4cfa000000 length 4885774336...E0326 14:23:06.526178 18039 rdma_transport.cpp:529] Memory region not registered by any active device(s): 0x7f3e26088000...I notice this, but when I run dmesg, no "Out of mr size" appear

ibv_devinfo -vgot thisI tried ib_write_bw everything is fine.
Do you have any idea? Thanks a lot
If you need extra info, just tell me.
Before submitting...
@alogfans commented on GitHub (Mar 27, 2026):
In some environments, we need root privilege to allow driver registering memory. @stmatengss confirm this?
@easonyang1010 commented on GitHub (Mar 27, 2026):
I run this in k8s pod, indeed it is root
run
idin poduid=0(root) gid=0(root) groups=0(root)@easonyang1010 commented on GitHub (Mar 27, 2026):
I found it is the same issue for https://github.com/kvcache-ai/Mooncake/issues/1407
I notice a PR for mooncake-store has been merged. So for mooncake-transfer-engine, this is also work?
@stmatengss commented on GitHub (Mar 27, 2026):
It doesn't work for transfer engine. Mooncake store supports using hugepages for RDMA registration. For Transfer Engine, the user must choose which memory to register. BTW, we can offer a huge page allocator, allowing users to directly acquire registered huge pages. CC. @YiXR
@stmatengss commented on GitHub (Mar 27, 2026):
@easonyang1010 Let me try to open a PR to fix it.
@stmatengss commented on GitHub (Mar 27, 2026):
However, the root cause seems to be poor GDR support. Please check it according to https://github.com/kvcache-ai/Mooncake/blob/main/docs/source/troubleshooting/troubleshooting.md#sglang-common-questions. Alternatively, use project skills for troubleshooting.
@easonyang1010 commented on GitHub (Mar 28, 2026):
@stmatengss hi, I can confirm it's not GDR problem.
server side

client side

driver

I can use this code to reproduce the problem
result

you can see this page, for the same problem
https://developer.aliyun.com/article/1661045
hope for your reply, tks
@easonyang1010 commented on GitHub (Mar 31, 2026):
@stmatengss hi, do you have any updates