Repository navigation
[https://nvbugs/6836097][test] Restrict UCX TCP to loopback in single-node disagg tests - #20031
Conversation
|
/bot run |
|
PR_Github #76913 [ run ] triggered by Bot. Commit: |
2333b73 to
c24aee0
Compare
|
/bot run |
|
PR_Github #76926 [ run ] triggered by Bot. Commit: |
|
PR_Github #76913 [ run ] completed with state |
|
PR_Github #76926 [ run ] completed with state
|
23eda2f to
b62dea7
Compare
|
/bot run |
|
PR_Github #77226 [ run ] triggered by Bot. Commit: |
|
PR_Github #77226 [ run ] completed with state
|
b62dea7 to
6fecfce
Compare
|
/bot run |
|
PR_Github #77379 [ run ] triggered by Bot. Commit: |
|
PR_Github #77379 [ run ] completed with state
|
6fecfce to
babc754
Compare
|
/bot run |
|
PR_Github #77649 [ run ] triggered by Bot. Commit: |
|
PR_Github #77649 [ run ] completed with state
|
babc754 to
2c6e684
Compare
|
/bot run |
|
PR_Github #77967 [ run ] triggered by Bot. Commit: |
|
PR_Github #77967 [ run ] completed with state
|
…-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]>
2c6e684 to
3773fdb
Compare
|
/bot run |
|
PR_Github #78296 [ run ] triggered by Bot. Commit: |
|
PR_Github #78296 [ run ] completed with state |
…trict UCX TCP to loopback in single-node disagg tests (#20451) Signed-off-by: Chuang Zhu <[email protected]>
…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]>
…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]>
Dev Engineer Review
get_ucx_net_devices()setsUCX_NET_DEVICEStolofor 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.pyadds 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.txtremoves waivers for B200test_disaggregated_overlap_gen_first[ctx_pp4]and B300test_disaggregated_ctxpp4_gentp4andtest_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 receiveUCX_NET_DEVICES=lowhile retaining their configuredUCX_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_fp8fails on B200 (https://nvbugs/6836097): the first requests hit the 60 skv_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_agenttakes 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 callsuct_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 inuct_tcp_netif_caps->ucs_netif_ioctl). With nine UCX workers per agent (TRTLLM_NIXL_NUM_THREADS=8) this adds up, and on these nodesbond0(an mlx5 bond) makes each query slow.Every config in
test_disaggregated.pyruns on localhost, so this setsUCX_NET_DEVICES=lonext to everyUCX_TLSthe file sets.test_disaggregated_qwen3_32b_fp8UCX_NET_DEVICES=loThe 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_gentp4andfull: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 passedtest_disaggregated_deepseek_v3_lite_fp8_nixlA/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)test_disaggregated_ctxpp4_gentp4andtest_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)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-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin 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