Skip to content

TOOLS/PERF: Do not limit the warm-up time when -w is set - #12421

Open
tvegas1 wants to merge 1 commit into
openucx:masterfrom
tvegas1:perftest-warmup-time
Open

tvegas1 wants to merge 1 commit into
openucx:masterfrom
tvegas1:perftest-warmup-time

Conversation

@tvegas1

@tvegas1 tvegas1 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

What?

Do not cap the ucx_perftest warm-up at 100 ms; run the -w iterations requested.

Why?

The warm-up stopped after 100 ms whatever -w said. With large messages or a slow start, only part of the requested iterations ran, so lazy initialization (protocol selection, memory-pool growth, registration) fell into the measured run.

How?

  • ucx_perftest sets warmup_time to 0 by default.
  • warmup_time == 0 means no time limit: the deadline is UINT64_MAX, the same way max_time == 0 is handled.
  • The gtest keeps its own 100 ms limit.

@tvegas1
tvegas1 requested a review from a team as a code owner November 23, 2026 10:09
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

Comment thread src/tools/perf/perftest.c Outdated
params->super.max_outstanding = 0;
params->super.warmup_iter = 10000;
params->super.warmup_time = 100e-3;
params->super.warmup_time = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making warmup_time = 0 the default removes the only bound on warmup wall time in ucx_perftest: warmup_time has no CLI option and max_time is also always 0. With no time limit the default warmup always runs ~16K iterations (1+2+...+8192), so for large messages (e.g. -b msg_pow2_large, where 2GB runs with -n 10) warmup becomes much longer than the test itself. CI jobs that omit -w (device-cuda config with -n 10000, cuda_compatible.yml) also get a much longer warmup. Why not increase the default limit instead of removing it?

Comment thread src/tools/perf/api/libperf.h Outdated
unsigned max_outstanding; /* Maximal number of outstanding sends */
ucx_perf_counter_t warmup_iter; /* Number of warm-up iterations */
double warmup_time; /* Approximately how long to warm-up */
/* Approximately how long to warm-up, 0 - unlimited */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: the new comment omits the units, unlike the neighboring max_time which says (seconds).

Suggested change
/* Approximately how long to warm-up, 0 - unlimited */
/* Approximately how long to warm-up (seconds), 0 - unlimited */

@svc-nvidia-pr-review

Copy link
Copy Markdown

Residual coverage gap: no test exercises the new unlimited default — test/gtest/common/test_perf.cc still sets warmup_time = 100e-3, and the CI perftest jobs that would hit the new path are the ones without -w, where the effect is extra runtime rather than a checked behavior.

@tvegas1
tvegas1 force-pushed the perftest-warmup-time branch from 6cc5ecb to 822e2b8 Compare November 23, 2026 10:44
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@tvegas1 tvegas1 changed the title TOOLS/PERF: Do not limit the warm-up time of ucx_perftest TOOLS/PERF: Do not limit the warm-up time when -w is set Nov 23, 2026
return UCS_OK;
case 'w':
params->super.warmup_iter = atol(opt_arg);
params->super.warmup_time = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls also update the -w help text in usage() to say that passing -w drops the default warm-up time limit, otherwise this implicit change of warmup_time is invisible to the user.

return UCS_OK;
case 'w':
params->super.warmup_iter = atol(opt_arg);
params->super.warmup_time = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: use a double literal, like the max_time = 0.0 default in perftest.c, and the warmup_time == 0.0 check in libperf.c.

Suggested change
params->super.warmup_time = 0;
params->super.warmup_time = 0.0;

unsigned max_outstanding; /* Maximal number of outstanding sends */
ucx_perf_counter_t warmup_iter; /* Number of warm-up iterations */
double warmup_time; /* Approximately how long to warm-up */
/* Approximately how long to warm-up (seconds), 0 - unlimited */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: can we keep the aligned trailing comment like the other fields in this struct?

Suggested change
/* Approximately how long to warm-up (seconds), 0 - unlimited */
double warmup_time; /* Warm-up time (sec), 0 - unlimited */

ucx_perftest stopped the warm-up after 100 ms whatever -w says, so with
large messages or a slow start it warmed up for a fraction of the
requested iterations, and lazy initialization (protocol selection,
memory-pool growth and registration) fell into the measured run.

When -w is set, warm up for all the requested iterations; warmup_time 0
means no limit. Without -w, keep the 100 ms limit so that the default
10000 iterations stay short with large messages.
@tvegas1
tvegas1 force-pushed the perftest-warmup-time branch from 822e2b8 to 26989d1 Compare November 23, 2026 12:47
@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.

@svc-ucx

svc-ucx commented Nov 23, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — Blossom-CI · commit 26989d1b

TL;DR: The Vulnerability scan job of Blossom-CI failed because the NVIDIA BlackDuck/Pulse server was unreachable (HTTPS read timeout after 15 s on authentication, 3/3 retries exhausted → exit 255); this is CI infrastructure flakiness, unrelated to PR #12421, so just re-run the workflow (/build).

Full analysis

Summary: Blossom-CI run 45177633278 failed in the "Run blossom action" step of the Vulnerability-scan job — the pulse BlackDuck BOM scan could not authenticate to the BlackDuck hub.

Root cause: Pure infrastructure/network failure, not a code failure. The container image pulled fine, then pulse scan crashed with:

  • socket.timeout: The read operation timed out →
  • urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='***', port=443): Read timed out. (read timeout=15.0) →
  • requests.exceptions.ReadTimeout raised from blackduck/Authentication.py:58 authenticate() via pulse/oss/blackduck/project.py:230 blackduck_user_groups.

The action retried with backoff ("Transient BlackDuck failure detected (attempt 1/3 … 2/3)") and the third attempt timed out identically, so the step exited 255. The timeouts happen on the very first HTTP call (/api/current-user auth POST) with only a 15 s read timeout — nothing in the UCX tree is reached by the scan at that point. A related infra symptom appears earlier in the Authorization job: level=error msg="Empty HTTP Response" / Failed to get project, indicating the same backend was degraded/unreachable during this window. No UCX source file, test, or build step ran.

Implicated commit: none — commit [REDACTED:Hex High Entropy String] (branch perftest-warmup-time, author tvegas1) is not implicated; authorization/GPG/SSO checks all passed before the failure.

File: .github/workflows/blossom-ci.yml:46-67 (Vulnerability-scan job, NVIDIA/blossom-action@main) — failure itself is inside the external action (pulse/oss/blackduck/*), not in this repo.

Suggested fix:

  1. Re-trigger the workflow by posting /build on PR TOOLS/PERF: Do not limit the warm-up time when -w is set #12421 (or re-run the failed job) once the BlackDuck hub is responsive — the scan should pass unchanged.
  2. If this recurs, report to the NVIDIA Blossom/ProdSec owners: the 15 s read timeout on BlackDuck authentication is too aggressive, and all three retries fall inside the same ~3-minute outage window. Ask them to raise the client read timeout and widen the retry backoff in blossom-action so a short hub hiccup doesn't fail PR CI.
  3. Optional hardening in this repo: the Vulnerability-scan job currently hard-blocks Job-trigger; consider having infrastructure-class failures (exit 255 from the scan transport, as opposed to an actual policy violation) surface as a retryable/neutral result so Jenkins CI isn't blocked by a BlackDuck outage.

Related: none found — searches for prior BlackDuck/Blossom scan timeout reports in openucx/ucx returned only unrelated PRs (#12420, #12423, #12424).

🛡️ This comment had 1 potential secret(s) redacted (Hex High Entropy String). See request_id 4dc2c988-fffe-49f3-aebd-71290f9204c8 in the triage console for the audit trail.

return UCS_OK;
case 'w':
params->super.warmup_iter = atol(opt_arg);
params->super.warmup_time = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: -w now silently clears the warm-up time limit, but usage() (-w <iters> number of warm-up iterations) does not mention it, and there is no comment at the assignment explaining the coupling. A user cannot discover from --help that passing -w makes warm-up run for the full iteration count regardless of elapsed time, which on slow links/large messages can noticeably extend the run.

Suggested change
params->super.warmup_time = 0;
/* Explicit warm-up iterations count disables the time limit */
params->super.warmup_time = 0;

Pls also mention in the -w help text in usage() that it removes the warm-up time limit, otherwise this behavior is not discoverable.

@svc-ucx

svc-ucx commented Nov 23, 2026

Copy link
Copy Markdown

🤖 CI Triage Agent — UCX PR (AddressSanitizer roce on worker 3) · commit 26989d1b

TL;DR: The ASAN gtest run passed 9241/9242 tests and failed only rcx/test_ucp_fault_tolerance_tf.target_failure/14 (rc_x/PUT|AM|FLUSH, i.e. token-failover mode); this is in the UCP fault-tolerance/failover code that was changed one day before the run and is unrelated to PR #12421 (which touches only src/tools/perf), so re-run and track it as a failover-mode test bug, not a PR regression.

Full analysis

Summary: make test in the "AddressSanitizer roce on worker 3" job exited 1 because exactly one gtest failed: rcx/test_ucp_fault_tolerance_tf.target_failure/14, where GetParam() = rc_x/PUT|AM|FLUSH (log lines 19:28:16.19, make: *** [Makefile:5017: test] Error 1).

Root cause: Evidence from the log: 9242 tests ran, 9241 passed, and the single failure is the token-failover (FAILOVER_MODE=token, rc_x-only) fixture test_ucp_fault_tolerance_tf, variant 14. Counting the variants produced by get_test_variants() (test/gtest/ucp/test_ucp_fault_tolerance.cc:31-72), index 14 is the combined UCP_FEATURE_AM|UCP_FEATURE_RMA variant TEST_OP_PUT|TEST_OP_AM|TEST_OP_FLUSH added at lines 65-67, which runs test_put_am_flush_with_injected_failure() (line 386) + test_recovery() (line 591) — i.e. it injects uct_ep_invalidate() on a target-side lane and requires the concurrent PUT+AM+FLUSH triple to complete with UCS_OK, no lane marked UCP_LANE_TYPE_FAILED, and m_total_err_count == 0. All other PUT-only and AM-only token variants passed, so the failure is specific to PUT failover under token mode, which is still work-in-progress (open PR #12379 "UCP/RMA: Support token failover for PUT short"). Note there is no timing/hang symptom: the run shows continuous activity, and the two 200 s tests (target_failure/10, initiator_failure/10) are the ALL_LANES_FAILED variants with KEEPALIVE_INTERVAL=3s and they passed. The tested commit (PR #12421, "TOOLS/PERF: Do not limit the warm-up time when -w is set") only touches the perftest tool and cannot affect UCP failover, so this is a pre-existing/flaky failure on the merge base.
Caveat: the exact gtest assertion text sits earlier in the job log than the retrievable tail, so the precise failing EXPECT/ASSERT line inside test_put_am_flush_with_injected_failure/test_recovery could not be confirmed.

Implicated commit: Not the PR commit. Most likely candidates are the FT/failover changes landed 1-2 days before this run: 00c42bc2 "UCP/FT: Fail p2p endpoints during initial wireup. (#12372)" and 427320ef "UCP/FT/AM: add token failover support for short and single/bcopy protocols (#12371)", both by Evgeny Leksikov (also 11ae0fca "UCP/WIREUP: Clear a recovered lane only after its probe succeeds (#12274)").

File: test/gtest/ucp/test_ucp_fault_tolerance.cc:386-443 (test_put_am_flush_with_injected_failure, variant defined at :65-67, token fixture at :1025-1032)

Suggested fix: Do not block PR #12421 on this — re-run the roce ASAN job to confirm it is not caused by the perftest change. For the real fix, pull the full job log to get the failing assertion, then either (a) complete PUT token-failover support (per WIP #12379) in the UCP RMA/failover path, or (b) temporarily restrict the test_ucp_fault_tolerance_tf fixture so the PUT|AM|FLUSH variant is skipped under FAILOVER_MODE=token (add a UCS_TEST_SKIP_R guard for TEST_OP_PUT in the _tf fixture, same style as the existing UD/DC limitations at :469-476 and :501-503) until PUT failover is supported. Also consider opening a tracking issue referencing #12379.

Related: PR #12421 (triggering PR, perftest-only), PR #12379 "[WIP-DNM] UCP/RMA: Support token failover for PUT short", PR #12372, PR #12371, PR #12274

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants