← Back to Pull requests

UCP/WIREUP: Add option for a dedicated AM lane #12496

Open
unknown opened this pull request with 257 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 27, 2026 14:40 UTC
Author

What?


Add the UCX_AM_LANE_MODE configuration 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 report UCT_PERF_ATTR_FLAGS_TX_RX_SHARED (for example, DC on NDR), and only for contexts that request the TAG or AM features.

  • 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(): when AM_LANE_MODE=dedicated, the transport capability check (TX_RX_SHARED) and the TAG|AM feature check are skipped. The AM lane is then always excluded from the RMA BW lanes, using the existing am_lane/allow_extra_path logic.

  • UCP_MIN_DST_VERSION_WIREUP_SEPARATE_AM_LANE still applies, so older peers get the same lane layout as before in both modes.

  • DC behavior does not depend on the new option: DC on NDR is always separated, as before.

  • gtest: add test_ucp_wireup_separate_am_lane, which checks for rc_x and rc_v that the AM lane is shared in auto mode and separated in dedicated mode.
  • Diff: 257 lines (+192 / -65) across 3 files Reviewer: tvegas1 Review duration: 316m
    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
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.9% · Safe to merge
    20.9%
    Repository