Repository navigation
[https://nvbugs/6758245][fix] Avoid metrics queue polling when iteration stats are disabled - #19517
Closed
BowenFu wants to merge 2 commits into
Conversation
…s are disabled Signed-off-by: Bowen Fu <[email protected]>
Contributor
Author
|
/bot run |
Collaborator
|
PR_Github #75084 [ run ] triggered by Bot. Commit: |
Collaborator
|
PR_Github #75084 [ run ] completed with state
|
This was referenced Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rubin issue
NVBug 6758245 reports that Kimi K3 NVFP4 serving on Rubin regresses when
enable_iter_perf_stats=false: output performance and interactivity degrade versus the enabled configuration. The failure is in the disabled/metricspath, not in metric computation.Root cause / invariant
With iteration stats disabled, no background stats buffer is created. The
/metricshandler nevertheless fell through to the legacyget_stats_async(2)queue poll, causing a timeout/poll on every request. With stats enabled, the collector-owned buffer path was used. The invariant is that disabled stats must return an empty metrics payload without touching the stats queue, while VisualGen, enabled buffered metrics, and legacy missing-flag behavior remain unchanged.Change
OpenAIServer.get_iteration_stats./metricsregression coverage.Evidence
The Rubin reproduction recorded the false arm entering
legacy_queue_pollwithget_stats_async(2)and the true arm usingbuffer_return; after the guard, the false arm isdisabled_short_circuit.Validation
4ccb3fdf8c5facc9dbf4a77e40cde19d71dc4141reviewed and transplanted asc5854eab343ba78a70ab81c01e1ae13866d85b4a.git diff --checkpassed.nvtx/compiled bindings.Bug: https://nvbugspro.nvidia.com/bug/6758245
Claude adversarial review was requested; its client did not return a verdict before PR creation.