Repository navigation
[TE/TENT] Add adaptive RDMA congestion control core - #4197
Conversation
2b37080 to
ad3c86f
Compare
staryxchen
left a comment
There was a problem hiding this comment.
Before moving forward, do we have a complete demo that we can use to validate the effects and get some results to support the benefits of this PR?
c87cafc to
3786def
Compare
Yes. The complete implementation is available in the Draft PR for end-to-end review and validation. |
3786def to
95a53f1
Compare
staryxchen
left a comment
There was a problem hiding this comment.
I did not review this line by line. The change is not wired into the TE or TENT transfer path, and the default build does not change existing RDMA behavior. I am fine with merging it. Please keep the follow-up changes that connect it to the transport as small as possible. @alogfans Please double-check.
Description
Add a shared adaptive congestion-control core for future Classic TE and TENT RDMA adapters.
The core now owns only pressure tracking, byte-window admission, and generation-safe accounting. Existing transport health mechanisms remain responsible for failure detection, quarantine, cooldowns, and recovery probes. The RDMA error classifier describes failure evidence without adding another recovery policy.
off: bypass core accounting and admission.observe: collect pressure and update windows without rejecting work.enforce: apply byte-window admission and reject stale-generation handles.This PR does not connect the controller to either transfer path or add task status APIs. Enabling the build option alone does not throttle production transfers. Building with
MOONCAKE_ENABLE_ADAPTIVE_CONGESTION_CONTROL=OFFomits the adaptive targets entirely.Related RFC: #4162.
Complete design Draft: #4629.
Current head:
95a53f1c2454b7a0a9c2890a7441d7fe3f4487bd, based on main1d97a1df97d5277836e0e297b03289d7a39e708d. Eight focused commits, 16 files, 2,053 additions. The six shared C++ source/header files and four test/benchmark sources match the complete integration at1224d555byte-for-byte.Module
mooncake-transfer-engine)mooncake-store)mooncake-conductor)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Fresh validation at the current head on 2026-10-15, using isolated Linux source/build directories with CUDA, etcd and Store disabled:
Test commands (dependency-cache paths omitted; repeat with
USE_TENTand the adaptive option ON/OFF):Test results:
Physical congestion benefits, GPU/GDR, hardware failure recovery, long-duration testing, and fresh sanitizer runs are not claimed for this core-only PR. Earlier draft test counts and performance numbers do not describe this rewritten head.
Checklist
./scripts/code_format.shPR-scoped pre-commit passed all applicable checks except whole-file CMake formatting. That hook rewrites pre-existing formatting outside this change in three existing CMake files; those unrelated rewrites were excluded. The new CMake file and new blocks are formatted. The all-hooks checkbox therefore remains unchecked.
AI Assistance Disclosure
OpenAI Codex assisted with implementation extraction, tests, independent review, documentation and validation. The human submitter remains responsible for understanding and defending all changes.