mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1187] [MERGED] [TE] Support rdma traffic class by environmental variable #2059
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#2059
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?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1187
Author: @yafengio
Created: 12/9/2025
Status: ✅ Merged
Merged: 12/10/2025
Merged by: @stmatengss
Base:
main← Head:feat/support-rdma-traffic-class📝 Commits (4)
dee70cafeat: support RDMA traffic_class by env variable.04f1757add some comments and update dump configs.9ab7e98add exception details in the log message.2c27594code format📊 Changes
5 files changed (+35 additions, -8 deletions)
View changed files
📝
doc/en/transfer-engine.md(+5 -4)📝
doc/zh/transfer-engine.md(+5 -4)📝
mooncake-transfer-engine/include/config.h(+1 -0)📝
mooncake-transfer-engine/src/config.cpp(+19 -0)📝
mooncake-transfer-engine/src/transport/rdma_transport/rdma_endpoint.cpp(+5 -0)📄 Description
Type of Change
Description
This PR adds support for configuring RDMA NIC Traffic Class (ToS/DSCP) through the
MC_IB_TCenvironment variable, enabling better network traffic management in production RDMA environments.Motivation
In production deployments with RDMA networks, different switches and NICs may have inconsistent default Traffic Class configurations. Additionally, network administrators often need to implement traffic planning and QoS policies. Previously, there was no way to adjust the RDMA Traffic Class without modifying code, which limited deployment flexibility.
Changes
1. New Environment Variable
MC_IB_TCenvironment variable support2. Implementation Details
ib_traffic_classfield toGlobalConfigstructMC_IB_TCenvironment variable with proper validation4. Documentation Updates
doc/en/transfer-engine.md]doc/zh/transfer-engine.md]Usage Example
Compatibility
How Has This Been Tested?
This test uses a PD-Disagg deployment (2P4D) and focuses only on the Prefill TTFT value.
From the test results above, we can see that the prefill TTFT P99 decreased from 2915.92ms to 2680.24ms, providing a significant improvement (results may vary across different test scenarios).
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.