Skip to content

[https://nvbugs/6836097][test] Restrict UCX TCP to loopback in single-node disagg tests - #20031

Merged
Shixiaowei02 merged 2 commits into
NVIDIA:mainfrom
chuangz0:fix/disagg-test-ucx-lo-6836097
Oct 16, 2026
Merged

Shixiaowei02 merged 2 commits into
NVIDIA:mainfrom
chuangz0:fix/disagg-test-ucx-lo-6836097

Conversation

@chuangz0

@chuangz0 chuangz0 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Dev Engineer Review

get_ucx_net_devices() sets UCX_NET_DEVICES to lo for single-node disaggregated tests. The helper is used across test setup and benchmark paths alongside UCX configuration. This constrains UCX device selection to loopback, consistent with the tests’ single-node scope. The diff also removes three B200/B300 waiver entries, so those tests can run instead of being skipped.

QA Engineer Review

tests/integration/defs/disaggregated/test_disaggregated.py adds the UCX device helper and applies it to existing test and benchmark paths. No test IDs or selectors are added. tests/integration/test_lists/waives.txt removes waivers for B200 test_disaggregated_overlap_gen_first[ctx_pp4] and B300 test_disaggregated_ctxpp4_gentp4 and test_disaggregated_overlap_gen_first[ctx_pp4]. These tests are reported to be in the B200/B300 QA function lists, not their CI test-db lists.

Reported hardware runs include passes, but also a Qwen3 expected-output failure, a stress-test stall, and linked CI pipelines that failed. No complete all-pass result is established. Coverage verdict: needs follow-up.

Per-File QA Perspective

  • tests/integration/defs/disaggregated/test_disaggregated.py: Verify that test and benchmark subprocesses receive UCX_NET_DEVICES=lo while retaining their configured UCX_TLS. Related disaggregated tests appear in CI test-db and manual QA lists.
  • tests/integration/test_lists/waives.txt: Removing the three entries enables the specified B200/B300 tests rather than skipping them. The tests are reported to run in B200/B300 QA lists, not CI test-db lists.

Description

test_disaggregated_qwen3_32b_fp8 fails on B200 (https://nvbugs/6836097): the first requests hit the 60 s kv_transfer_timeout_ms.

The Python transceiver connects NIXL peers on the first request, and each context rank loads its four generation peers one at a time on the Sender listener thread. On the B200 nodes one load_remote_agent takes 21-30 s, so the last peer is ready only after 60-110 s.

The time is spent inside UCX. These tests set UCX_TLS=^ib,gdr_copy, and NIXL's UCX backend uses peer error handling, so shared memory cannot carry active messages and UCX puts them on TCP. During endpoint creation, UCX 1.22 protocol selection calls uct_tcp_iface_query() for each TCP netdev many times, and every call issues ethtool ioctls with no caching (py-spy native stacks: 10/10 samples in uct_tcp_netif_caps -> ucs_netif_ioctl). With nine UCX workers per agent (TRTLLM_NIXL_NUM_THREADS=8) this adds up, and on these nodes bond0 (an mlx5 bond) makes each query slow.

Every config in test_disaggregated.py runs on localhost, so this sets UCX_NET_DEVICES=lo next to every UCX_TLS the file sets.

test_disaggregated_qwen3_32b_fp8 before UCX_NET_DEVICES=lo
one peer load (4 ctx x 4 gen) 21-30 s 0.45-0.55 s
cluster startup 184 s 63 s

The test stays waived: its requests no longer time out, but it still fails the expected-output assertion tracked in https://nvbugs/6770977.

This PR also removes three waives that point at https://nvbugs/6728119. That bug is an L40S IOMMU / NCCL P2P problem and does not apply to these GPUs:

  • full:B200/...::test_disaggregated_overlap_gen_first[ctx_pp4]: passes on B200 with the change above; without it, one cold peer load took 26 s of the 60 s budget.
  • full:B300/...::test_disaggregated_ctxpp4_gentp4 and full:B300/...::test_disaggregated_overlap_gen_first[ctx_pp4]: pass on B300 with and without the change. B300 nodes (AWS, ENA NIC, no bond) do not have the slow cold connect (about 1.1 s per peer load).

These three tests run only in the QA function list on B200/B300, not in the B200/B300 CI test-db lists.

Test Coverage

nsc-svg B200 node (8 GPUs), main CI image, PostMerge 3009 wheel (ec357dd):

  • test_disaggregated_qwen3_32b_fp8[Qwen3/Qwen3-32B-FP8]: no KV transfer timeouts (fails only on the 6770977 assertion)
  • test_disaggregated_ctxpp4_gentp4, test_disaggregated_ctxpp2_gentp2, test_disaggregated_perf_metrics (C++ UCX), test_disaggregated_kv_cache_time_output (C++ UCX), test_disaggregated_deepseek_v3_lite_fp8_nixl[DeepSeek-V3-Lite-fp8] (C++ NIXL): 5 passed
  • test_disaggregated_deepseek_v3_lite_fp8_nixl A/B with warm caches: startup 177/180 s with this change vs 192/195 s without (all passed)
  • test_disaggregated_overlap_gen_first[ctx_pp4] on B200: passed with this change (startup 72 s, peer load 0.5 s) and without it (peer load 26 s)
  • B300 (aws-pdx, CI DGX_B300 cluster): test_disaggregated_ctxpp4_gentp4 and test_disaggregated_overlap_gen_first[ctx_pp4] passed in 4/4 runs, two with and two without this change (warm startup 75 s / 72 s in both)
  • Not unwaived: B200 test_disaggregated_stress_test[input8k-output1k-conc512-qwen3_32b_fp8_stress] still fails with this change. Peer setup takes 0.03 s, but the generation worker later stalls under load with requests stuck waiting for KV, which matches https://nvbugs/6621362.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

🤖 Generated with Claude Code

@chuangz0
chuangz0 requested a review from a team as a code owner October 9, 2026 06:42
@chuangz0

chuangz0 commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 8d4be636-6f2b-4230-922a-39258828d127
📥 Commits

Reviewing files that changed from the base of the PR and between b62dea7 and 6fecfce.

📒 Files selected for processing (1)
  • tests/integration/test_lists/waives.txt
💤 Files with no reviewable changes (1)
  • tests/integration/test_lists/waives.txt

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Walkthrough

The disaggregated test setup adds a helper that returns "lo" for single-host runs. Test and benchmark environments use the helper to set UCX_NET_DEVICES. The change also removes selected B200 and B300 skip entries.

Changes

Disaggregated test setup

Layer / File(s) Summary
UCX device selection and environment setup
tests/integration/defs/disaggregated/test_disaggregated.py
Adds get_ucx_net_devices() and uses its result to set UCX_NET_DEVICES across disaggregated test and benchmark environments.
Selected test skip updates
tests/integration/test_lists/waives.txt
Removes the B200 overlap test skip and two B300 skip entries. The B300 Mamba concurrency skip remains.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: brnguyen2

Merge Risk: ⚪ Minimal · up to 6fecf

No actionable current-head issue was established. The loopback setting matches the locally launched tests; proceed with normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 64.71% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 17 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the main change: restricting UCX TCP to loopback for single-node disaggregated tests. It includes a valid NVBugs ID and test type.
Description check Passed The description explains the failure, root cause, solution, performance impact, waived-test changes, test coverage, and remaining known failures. It follows the required template and includes the chec…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76913 [ run ] triggered by Bot. Commit: 2333b73 Link to invocation

@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch from 2333b73 to c24aee0 Compare October 9, 2026 08:10
@chuangz0

chuangz0 commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76926 [ run ] triggered by Bot. Commit: c24aee0 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76913 [ run ] completed with state ABORTED. Commit: 2333b73

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76926 [ run ] completed with state SUCCESS. Commit: c24aee0
/LLM/main/L0_MergeRequest_PR pipeline #63419 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch 2 times, most recently from 23eda2f to b62dea7 Compare October 12, 2026 07:22
@chuangz0

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77226 [ run ] triggered by Bot. Commit: b62dea7 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77226 [ run ] completed with state SUCCESS. Commit: b62dea7
/LLM/main/L0_MergeRequest_PR pipeline #63664 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch from b62dea7 to 6fecfce Compare October 13, 2026 02:20
@chuangz0

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77379 [ run ] triggered by Bot. Commit: 6fecfce Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77379 [ run ] completed with state SUCCESS. Commit: 6fecfce
/LLM/main/L0_MergeRequest_PR pipeline #63788 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch from 6fecfce to babc754 Compare October 14, 2026 02:39
@chuangz0

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77649 [ run ] triggered by Bot. Commit: babc754 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77649 [ run ] completed with state SUCCESS. Commit: babc754
/LLM/main/L0_MergeRequest_PR pipeline #64012 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch from babc754 to 2c6e684 Compare October 15, 2026 02:23
@chuangz0

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77967 [ run ] triggered by Bot. Commit: 2c6e684 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #77967 [ run ] completed with state FAILURE. Commit: 2c6e684
/LLM/main/L0_MergeRequest_PR pipeline #64272 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

…-node disagg tests

test_disaggregated_qwen3_32b_fp8 timed out on B200: each context rank
loads its four generation peers' NIXL agents one at a time, and on these
nodes each load took 21-30 s, so the last peer was ready only after the
60 s kv_transfer_timeout_ms had passed.

With UCX_TLS=^ib,gdr_copy and NIXL's peer error handling, UCX carries
active messages over TCP. During endpoint creation, UCX 1.22 protocol
selection re-queries every TCP netdev (ethtool ioctls, no caching), and
bond0 on these nodes makes each query slow.

Every config in this file runs on localhost, so set UCX_NET_DEVICES=lo
next to each UCX_TLS. Each peer load now takes about 0.5 s.

Signed-off-by: Chuang Zhu <[email protected]>
…nd B300

These three waives point at nvbugs/6728119, which is an L40S IOMMU /
NCCL P2P problem and does not apply to B200 or B300.

On B200 (nsc-svg), overlap_gen_first[ctx_pp4] passes with the
UCX_NET_DEVICES change; without it, one cold peer load took 26 s of the
60 s kv_transfer_timeout_ms budget. On B300 (aws-pdx), ctxpp4_gentp4 and
overlap_gen_first[ctx_pp4] passed in all four runs, with and without the
change; B300 nodes do not have the slow cold connect.

Signed-off-by: Chuang Zhu <[email protected]>
@chuangz0
chuangz0 force-pushed the fix/disagg-test-ucx-lo-6836097 branch from 2c6e684 to 3773fdb Compare October 16, 2026 02:05
@chuangz0

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78296 [ run ] triggered by Bot. Commit: 3773fdb Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78296 [ run ] completed with state SUCCESS. Commit: 3773fdb
/LLM/main/L0_MergeRequest_PR pipeline #64533 completed with status: 'SUCCESS'

CI Report

Link to invocation

@Shixiaowei02
Shixiaowei02 merged commit 84f14da into NVIDIA:main Oct 16, 2026
Shixiaowei02 pushed a commit that referenced this pull request Oct 16, 2026
chuangz0 added a commit to chuangz0/TensorRT-LLM that referenced this pull request Nov 23, 2026
…st disagg tests

test_auto_scaling.py, test_workers.py and the accuracy disaggregated
launcher set UCX_TLS but left UCX_NET_DEVICES at its default, so UCX
could use every network device on the host. On the R100 QA node
(fractal-ts2-148), TCP connections to its 192.168.118.95 interface are
refused. The MPI workers that trtllm-serve spawned then failed their
first barrier with the parent (pml_ucx: "ucp_ep_create(proc=0) failed:
Destination is unreachable", then MPI_ERR_OTHER). The
test_disaggregated.py cases in the same runs already set
UCX_NET_DEVICES=lo (NVIDIA#20031) and did not hit this error.

Move get_ucx_net_devices() from test_disaggregated.py to defs/common.py,
next to get_ucx_tls(), and set UCX_NET_DEVICES=lo wherever these tests
set UCX_TLS for workers on this host. This also removes four local
copies of get_ucx_tls(). "lo" also turns off IB devices; the launchers
already exclude IB, except the accuracy launcher on nodes without
NVLink, which now matches what test_disaggregated.py runs on pre-Hopper
nodes.

In test_disaggregated_single_gpu.py, mpi4py applies MPIPoolExecutor's
env= only after the spawn handshake, so "lo" there reaches the workers'
KV transfer (NIXL), not their MPI connection to pytest.
test_dwdp_disaggregated_serving.py starts its workers with mpirun and is
skipped on R100; it is unchanged.

Signed-off-by: Chuang Zhu <[email protected]>
chuangz0 added a commit to chuangz0/TensorRT-LLM that referenced this pull request Nov 24, 2026
…st disagg tests

test_auto_scaling.py, test_workers.py and the accuracy disaggregated
launcher set UCX_TLS but left UCX_NET_DEVICES at its default, so UCX
could use every network device on the host. On the R100 QA node
(fractal-ts2-148), TCP connections to its 192.168.118.95 interface are
refused. The MPI workers that trtllm-serve spawned then failed their
first barrier with the parent (pml_ucx: "ucp_ep_create(proc=0) failed:
Destination is unreachable", then MPI_ERR_OTHER). The
test_disaggregated.py cases in the same runs already set
UCX_NET_DEVICES=lo (NVIDIA#20031) and did not hit this error.

Move get_ucx_net_devices() from test_disaggregated.py to defs/common.py,
next to get_ucx_tls(), and set UCX_NET_DEVICES=lo wherever these tests
set UCX_TLS for workers on this host. This also removes four local
copies of get_ucx_tls(). "lo" also turns off IB devices; the launchers
already exclude IB, except the accuracy launcher on nodes without
NVLink, which now matches what test_disaggregated.py runs on pre-Hopper
nodes.

In test_disaggregated_single_gpu.py, mpi4py applies MPIPoolExecutor's
env= only after the spawn handshake, so "lo" there reaches the workers'
KV transfer (NIXL), not their MPI connection to pytest.
test_dwdp_disaggregated_serving.py starts its workers with mpirun and is
skipped on R100; it is unchanged.

Signed-off-by: Chuang Zhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants