UCP/WIREUP: Add option for a dedicated AM lane #12496
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 257 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #12496"
general
weight: 0.35
tvegas1
What?
Add the
UCX_AM_LANE_MODEconfiguration option, which controls whether the active-message (AM) lane is separated from the high-bandwidth RMA lanes:auto(default): keep the current behavior. The AM lane is separated only on transports that reportUCT_PERF_ATTR_FLAGS_TX_RX_SHARED(for example, DC on NDR), and only for contexts that request theTAGorAMfeatures.dedicated: always use an AM lane separate from the high-bandwidth RMA lanes (large PUT/GET and rendezvous data), on all transports including RC, regardless of the requested features.Why?
When the AM lane is also used for high-bandwidth RMA, active messages can be head-of-line blocked behind large RMA operations on the same send queue.
For example, during a bidirectional rendezvous exchange over RC, each side's RTS/ATS control messages wait behind the other direction's in-flight RDMA transfers. As a result, the two transfers are serialized instead of overlapping. The same effect slows down regular AM traffic whenever a large RMA operation is in progress.
Reproducer, bidirectional large-message exchange over
UCX_TLS=rc:| Mode | Serialized iterations |
|---|---|
|
auto(current behavior) | 100/100 ||
dedicated| 0/100 |The default stays unchanged because a dedicated lane may create an additional transport endpoint per peer. More lanes also make fence operations take longer at scale.
How?
ucp_wireup_add_rma_bw_lanes(): whenAM_LANE_MODE=dedicated, the transport capability check (TX_RX_SHARED) and theTAG|AMfeature check are skipped. The AM lane is then always excluded from the RMA BW lanes, using the existingam_lane/allow_extra_pathlogic.UCP_MIN_DST_VERSION_WIREUP_SEPARATE_AM_LANEstill applies, so older peers get the same lane layout as before in both modes.test_ucp_wireup_separate_am_lane, which checks forrc_xandrc_vthat the AM lane is shared inautomode and separated indedicatedmode.