Repository navigation
metrics: an opt-in histogram of how long a request queued - #2158
Merged
Merged
Conversation
Owner
Author
|
The overhead run is clean. On an M5 Ultra, on the 27B, with |
ashhart
marked this pull request as ready for review
November 4, 2026 20:57
ashhart
force-pushed
the
lead/phase-metrics
branch
2 times, most recently
from
November 6, 2026 08:36
3e8a507 to
6c6a21a
Compare
4 tasks done
Owner
Author
|
/atc exchange 34357c94605343665dafc68767a08e1bdb2a27f6f2c9631b8cd57306cf18a98a |
4 tasks done
ashhart
added a commit
that referenced
this pull request
Nov 6, 2026
ashhart
force-pushed
the
lead/phase-metrics
branch
from
November 6, 2026 20:44
6c6a21a to
d592dfd
Compare
…TRICS=1) Each finished request's wait from submission to admission, which the lane host already measures (Stats.queued_seconds), is observed into one more histogram, rendered as tensorfold:request_queue_seconds and under vLLM's name request_queue_time_seconds. No label is added: the families are as bounded as the existing request histograms. Unset, nothing is observed and /metrics is byte for byte as before; replies never change either way. A host test checks both: the on body, less its two queue families, equals the off body. Refs #2139.
ashhart
force-pushed
the
lead/phase-metrics
branch
from
November 6, 2026 21:17
d592dfd to
beef497
Compare
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.
Part of #2139.
The lane host already measures each request's queue wait and prints it per request, but never exported it. With
TENSORFOLD_PHASE_METRICS=1,/metricsadds one histogram with no labels (13 buckets), so the series count is fixed.Unset, nothing is observed and
/metricsis byte for byte main's, which a host test checks. Replies don't change either way. It's still a draft until an on/off overhead run shows no slowdown.