Subtracting p99 values
The p99 queue request can differ from the p99 TTFT request. Compare histograms over matched traffic windows and use per-request timing to attribute an individual delay.
Operator task guide
When vLLM p99 time to first token (TTFT) rises but inter-token latency stays flat, compare queue and prefill time on the same replica and request cohort. A growing queue points to scheduler wait. Longer prefill with a steady queue points to more or slower prompt processing. If both stay flat while client TTFT rises, compare the direct replica path with the gateway path.
Compare requests with similar prompt lengths and cache state. Longer prompts and fewer prefix cache hits both increase the work before the first token. Aggregate latency alone cannot separate them.
Reviewed . Reference guidance is not a diagnosis of your workload.
Record the vLLM version, model, GPU placement, prompt and output lengths, arrival rate and concurrency. Compare matched time windows and check which metrics your release exposes. Capture client TTFT and server TTFT in parallel so gateway retries, routing and streaming can be checked separately.
curl -fsS http://127.0.0.1:8000/metrics | grep -E '^vllm:(time_to_first_token_seconds|request_queue_time_seconds|request_prefill_time_seconds|inter_token_latency_seconds|request_prompt_tokens|num_requests_waiting|num_requests_running|prefix_cache_hits|prefix_cache_queries|num_preemptions)'Compare vllm:request_queue_time_seconds and vllm:request_prefill_time_seconds over the same window. Pair the queue histogram with waiting and running request counts. If the queue grows while completed throughput flattens, test the same prompt mix at a lower arrival rate to see whether queue time falls.
Check the prompt token distribution and changes in prefix cache hits relative to queries. That ratio describes cached tokens over a window. To test cache effects, compare same-length prompts that share a reusable prefix with prompts of the same length and a unique prefix, on the same replica. Warm the shared prefix before measuring the warm cohort. Keep output length, arrival rate and server settings fixed.
Replace YOUR_SERVED_MODEL with the served model ID and verify the flags with your installed vLLM CLI. Run the same command after one change. To isolate input length, repeat with a longer supported input while holding output length and arrival rate fixed. Random inputs exercise prompt length; use the shared-prefix comparison for cache behavior. Repeat the runs and record TTFT, inter-token latency, completed throughput and errors.
vllm bench serve --backend vllm --base-url http://127.0.0.1:8000 \
--model YOUR_SERVED_MODEL --dataset-name random \
--random-input-len 512 --random-output-len 128 --seed 42 \
--num-prompts 500 --request-rate 4 --percentile-metrics ttft,itl --metric-percentiles 50,95,99| Signal | What it means | Next action |
|---|---|---|
| Queue time and waiting requests rise while prefill stays steady | Requests are spending longer waiting to run. | Replay the same prompt mix at a lower arrival rate. If queue time and TTFT recover together, check admission limits and replica capacity. |
| Prefill time rises on long or uncached prompts while queue time stays steady | Prompt processing is contributing more latency. | Compare same-length warm and unique prefixes, then compare short and long prompts at a fixed arrival rate. Check prompt token counts and cache reuse. |
| TTFT rises after a chunked prefill or token budget change | The scheduler change may have moved latency between prompt processing and decode. | Compare the previous and new settings on a test replica using the same request mix. Measure TTFT, inter-token latency and throughput before adopting the change. |
| Client TTFT rises while server TTFT, queue and prefill stay steady | The added delay may be outside the measured engine path. | Send the same request directly to one test replica and through the gateway. Compare retry counts and the timing of the first streamed response. |
The p99 queue request can differ from the p99 TTFT request. Compare histograms over matched traffic windows and use per-request timing to attribute an individual delay.
A rollout or routing change can alter prefix reuse. Keep the replica, prompt length and cache state consistent when testing a scheduler change.
Check whether requests waited longer to be scheduled or spent longer processing their prompts. Compare the engine queue and prefill metrics for the same traffic mix. Compare client and server TTFT if both are steady.
Prefix reuse skips work on cached prompt tokens. Compare TTFT for warm and unique prefixes at the same input length, and measure inter-token latency separately.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident