UCX: Set min delay of progress thread to 1ms #2541
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 247 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2541"
general
weight: 0.35
d4l3k
What?
Set min delay of progress thread to 1ms
Fixes https://github.com/ai-dynamo/nixl/issues/2491
Why?
UCX progress thread uses WAKEUP feature, and normally should only react on UCX worker events via FDs.
However under certain circumstances wakeup does not work, so UCX backend used to have a delay timeout.
It is supposed to be at least 1ms, as stated in the comment, but due to the bug in https://github.com/ai-dynamo/nixl/pull/347 it became 0 by default - meaning progress thread keeps busy polling all the time
How?
Restore the intended behavior
That actually improved performance of progress thread
Tested on DFW, TTFT improves a bit, but not very consistently.
But nice observation is that idle decode CPU use fell 58%.
<img width="1046" height="626" alt="image" src="https://github.com/user-attachments/assets/df8633a6-0dab-4681-abd6-1137174da82c" />
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
UCX progress-thread polling now uses a minimum 1-millisecond timeout when the configured delay is zero or negative, preventing invalid or zero-length polling intervals. Larger delays continue to follow the existing upper limit.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->