mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #53] 对于p2p-store-example,用阿里云eRDMA,设置MC_GID_INDEX=1时无法启动,只有0才能启动,不过ibv_modify_qp仍然报错 #32
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#32
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 @power-more on GitHub (Dec 26, 2024).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/53
问题:关于MC_GID_INDEX=0 or 1的配置和启动后的报错,是否与自动检测相关
描述:
我使用阿里云 eRDMA 设备运行p2p-store-example时遇到了一些问题:
MC_GID_INDEX=1 不可用,只有 MC_GID_INDEX=0 才能正常工作,导致报错:Device erdma_0 GID 1 not available: Invalid argument [22],但文档要求阿里云erdma就要设置为1。
在trainer端尝试将 Queue Pair (QP) 的状态修改为 RTS 时,遇到了以下错误(刷屏):Failed to modify QP to RTS: Invalid argument [22] ,我看这是
ibv_modify_qp函数的报错中,于是我在modify之前添加了ibv_query_qp,改动如下:但是问题仍然存在。错误信息是
Resource temporarily unavailable [11](即 EAGAIN 错误)I1226 17:03:17.293787 1807026 rdma_endpoint.cpp:411] Current QP state: 0: Resource temporarily unavailable [11]
I1226 17:03:17.293788 1807026 rdma_endpoint.cpp:414] Setting QP to RTS with the following attributes:
Timeout:
Retry Count:
RNR Retry:
SQ PSN: 0
Max QP RD Atomic: : Resource temporarily unavailable [11]
I1226 17:03:17.293792 1807026 rdma_endpoint.cpp:428] QP successfully modified to RTS.: Resource temporarily unavailable [11]
libtransfer_engine.so,用g++并链接了要求的各种依赖库,没有用cmake。以上,我的问题有两条:
@alogfans commented on GitHub (Dec 27, 2024):
MC_GID_INDEX=0表示自动搜索合法的 GID Index,但在某些复杂情况下可能会失败,这时才需要手动调节MC_GID_INDEX环境变量。在我们的 eRDMA 测试平台中 GID Index 需为 1,但你所用的平台可能需为 0,具体可使用ibv_devinfo -v验证。@doujiang24 commented on GitHub (Feb 15, 2025):
transfer-engine 使用带外建连,阿里云的 erdma 需要改下 compat_mode:
https://help.aliyun.com/zh/ecs/use-cases/deploy-brpc-applications-with-high-network-performance-based-on-erdma?spm=5176.2020520104.console-base_help.dexternal.2e9843ec49pG0U#b4edf3063c1gl