﻿# Profile: diagnose a running vLLM server and verify a change

Profile reads live vLLM metrics and suggests settings. Its author examples show improvements, with important limits on baseline, latency and cost comparisons.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/profile-live-vllm-diagnostics-before-after-evidence/
Language: en

A language-model server can respond slowly without necessarily needing a more expensive GPU. Requests may wait for KV-cache capacity, batching settings may poorly match the workload, or allocated memory may be insufficient for concurrent requests. [Profile](https://github.com/jungledesh/profile) proposes diagnosing these situations through the metrics of a running vLLM server: identify a likely cause, suggest a change, and show measurements before and after it.

As of 5 November 2026, the project describes Profile as a command-line program for a single NVIDIA or AMD GPU. The checked materials do not establish its first release date. The developer says the tool operates on live traffic and neither restarts the server nor applies settings itself. Its intended users are engineers running their own vLLM who want to understand why a particular configuration misses throughput or latency objectives. [Source: project README](https://github.com/jungledesh/profile).

## From metrics to a hypothesis

Profile connects to vLLM's accessible HTTP `/metrics` endpoint, collects server measurements and GPU information, and compares observed behavior with a modeled hardware ceiling. The calculation uses device characteristics, including memory bandwidth and compute performance, alongside model characteristics. This is a guide for finding losses, rather than a guaranteed speed: the [project's research documentation](https://github.com/jungledesh/profile/blob/main/docs/research.md) acknowledges that estimates based on specifications can overstate achievable performance and are not calibrated for every system.

A rule engine then selects a primary hypothesis from several candidates. For example, published output shows average KV-cache occupancy of 88.6%, a 99.9% peak, and 15 waiting requests; Profile also identifies evictions and suggests cache pressure. Its proposed changes include raising `--gpu-memory-utilization`, using FP8 KV cache, or reducing `--max-model-len`. High cache occupancy alone does not establish a problem: associated queuing and evictions matter. [Example and rule description](https://github.com/jungledesh/profile).

The KV cache stores intermediate attention data needed during generation. Longer contexts and more concurrent requests can require more memory. Each proposed setting has consequences: lowering the maximum context length restricts accepted requests, increasing vLLM's memory allocation leaves less headroom, and changing cache precision requires compatibility and answer-quality checks. A recommendation is therefore a hypothesis to test on the actual workload.

After the operator changes a setting and restarts vLLM, Profile collects measurements again and prints differences, identifying regressions. According to its [workflow documentation](https://github.com/jungledesh/profile/blob/main/docs/workflow.md), it requires a running server, accessible metrics and traffic. A typical invocation after installation is:

```bash
profile diagnose --url http://localhost:8000/metrics --duration 30s
```

Thirty seconds is the default window, rather than a universally sufficient experimental duration. Sparse requests or cyclical traffic need a window covering their characteristic cycle. For an idle server, the project suggests generating traffic with a tool such as `vllm bench serve`; Profile does not generate synthetic load itself. It targets a single GPU and, according to the documentation, rejects tensor-parallel configurations greater than one. [README](https://github.com/jungledesh/profile), [workflow](https://github.com/jungledesh/profile/blob/main/docs/workflow.md).

## What the numbers mean

Tokens per second are only part of the result. TTFT is time to the first response token; a higher value feels like a longer pause before an answer begins. P95 TTFT describes the upper part of the distribution: approximately 95% of observations fall at or below that level. In vLLM, TTFT and several other latencies are histograms, so the accuracy of a displayed percentile depends on bucket boundaries and calculation method. Queue length and running-request counts are gauges instead. Metric names and availability must be checked against the server version. [Official vLLM metrics](https://docs.vllm.ai/en/latest/usage/metrics/).

The theoretical ceiling, server measurements and cost have different foundations. Throughput and latency in Profile's examples are presented as server observations; the ceiling is a modeled estimate. Cost per million output tokens is also estimated: it depends on the assumed hourly GPU price and measured generation rate, rather than representing an invoice. Comparisons must account consistently for utilization and the selected rate. [Project methodology](https://github.com/jungledesh/profile/blob/main/docs/research.md).

## What the author's example shows

The developer reports that, on a single RTX 5090 with 32 GB of memory running Muse Glimmer 30B in NVFP4 for SWE-Bench agents, several configuration changes raised throughput from **81 to 421 tokens/s**, approximately **5.2 times**. Estimated cost per million output tokens fell from **$3.41 to $0.65**. These are the author's results for one installation, rather than a promise of the same improvement on any server. [README and published example](https://github.com/jungledesh/profile).

In the same material, a separate transition from an intermediate state of 131 tokens/s to 421 tokens/s accompanies a fall in mean TTFT from 32 857 to 224 ms and p95 from 66 946 to 500 ms. Those latencies cannot automatically be assigned to the original 81-token/s baseline, which belongs to the broader comparison across several iterations. For an H100 with 80 GB HBM3 running Qwen3.8-27B, the developer also reports a throughput increase from 257 to 490 tokens/s. [Author's examples](https://github.com/jungledesh/profile).

The checked materials do not provide enough information for full reproduction: input and output length distributions, exact concurrency, software versions, repetition counts and variability are not established. Additional searching did not identify an independent reproducible test of these speedups; that describes the search result, rather than proving such tests do not exist. The reported gains show that an unfavorable initial configuration can improve, but cannot predict the gain for another workload.

A practical use of Profile starts by recording vLLM and model versions, launch parameters, GPU characteristics and the assumed price. Then compare the same request distributions and arrival rates before and after an individual change. Repeated runs reveal variability, while examining TTFT, p95 and generation throughput together exposes tradeoffs. For example, the [vLLM optimization guide](https://docs.vllm.ai/en/latest/configuration/optimization/) describes batch-budget choices that affect first-token latency, intervals between tokens and throughput differently. Judge the result against the service's actual objectives.

The distinction between cache occupancy and repeated computation is explained in [vLLM preemption](/journal/vllm-kv-cache-preemption/). The limits of changing the memory budget appear in [gpu-memory-utilization](/journal/vllm-gpu-memory-utilization/). These checks help evaluate a Profile recommendation through its consequences.

## Sources

- [Profile: README and author examples](https://github.com/jungledesh/profile).
- [Profile: workflow and limitations](https://github.com/jungledesh/profile/blob/main/docs/workflow.md).
- [Profile: research foundation and estimate limitations](https://github.com/jungledesh/profile/blob/main/docs/research.md).
- [vLLM: production metrics](https://docs.vllm.ai/en/latest/usage/metrics/).
- [vLLM: optimization and tuning](https://docs.vllm.ai/en/latest/configuration/optimization/).
