[Performance]: MAX_UTILIZATION causes a 40.6% output-throughput drop and 9.1x TPOT p99 under KV-cache oversubscription (Llama-3.3-70B-FP8, H200, v1.2.1)
Proposal to improve performance
N/A — this is a measured performance report and a request for guidance on the intended operating regime and observability.
Report of performance regression
Summary
While running a controlled three-engine benchmark study, we swept scheduler_config.capacity_scheduler_policy on TensorRT-LLM 1.2.1 (PyTorch backend, trtllm-serve) and found that switching from the default GUARANTEED_NO_EVICT to MAX_UTILIZATION causes a severe performance drop — but only when the workload's KV working set exceeds the KV-cache pool:
- Under KV pressure (long-context workload, details below): output-token throughput 161.0 → 95.7 tok/s (−40.6%), TPOT p99 122 → 1,111 ms (~9.1×), end-to-end p99 150 → 563 s.
- Off pressure (short-context workload, same server config, not pool-bound): the two policies are equivalent within noise — mean output-token throughput 574.7 vs 576.1 tok/s (+0.24%). Across the two repeats, per-run throughput was 574.4–575.1 tok/s (GUARANTEED_NO_EVICT) and 574.5–577.6 tok/s (MAX_UTILIZATION).
We understand MAX_UTILIZATION is documented as the more aggressive policy that may pause/evict requests, so this may well be a by-design trade-off rather than a bug. We are reporting it because (a) the magnitude is large: under KV pressure, the policy was worse on every listed metric except TTFT p50; off pressure, the two policies were effectively equivalent in the two repeats; and (b) the failure mode was not visible to us through any counter we could find: no warning, just a 9× p99 blowup. Questions for the team are at the end.
Environment
- TensorRT-LLM 1.2.1 (latest stable release at time of writing), NGC container
nvcr.io/nvidia/tensorrt-llm/release:1.2.1, run via Apptainer 1.4.3, PyTorch backend,trtllm-serve. - Container image digest:
sha256:b5f9b403c414d663fbdb7be754b90a063785d28827ca418184fa2497b644ec04(linux/amd64 manifest recorded in the local pull cache at build time); NGC build id 245654590. - Apptainer image (SIF) SHA256:
4a4c6fc242c818b20ea8346c0680440c64efaa6c7d2f7a34034a7464ccd455f0. tensorrt_llmPython package version inside the container: 1.2.1 (pip show tensorrt_llm).- Model:
nvidia/Llama-3.3-70B-Instruct-FP8, Hugging Face revisionfde04ee76a27704c88f569542ef023b57d4d0362(ModelOpt 0.27.1 unified checkpoint,quant_algo: FP8,kv_cache_quant_algo: FP8);model.safetensors.index.jsonSHA2566398071a55c63422e6607f3a2e5b9a28a90f51090aca7a2313386f42a3d957ec. - GPU: 1× H200 (141 GB), single node (HPC cluster, Slurm, cgroup-isolated one-job-per-GPU), TP=1.
- Driver: 580.65.06 (host
nvidia-smireports CUDA 13.0). - OS / Python inside container: Ubuntu 24.04.3 LTS, Python 3.12.3; in-container CUDA toolkit 13.1 (nvcc V13.1.80), cuDNN 9.17.0.29, NCCL 2.28.9, TensorRT 10.14.1.48, PyTorch 2.10.0a0+b4e4ee81d3.nv25.12.
Server launch
trtllm-serve serve $MODEL --backend pytorch --tp_size 1 \
--max_batch_size 64 --max_num_tokens 8192 --max_seq_len 20480 \
--kv_cache_free_gpu_memory_fraction 0.90 \
--config extra.yaml \
--host 127.0.0.1 --port $PORT
extra.yaml — baseline arm:
kv_cache_config:
enable_block_reuse: false # prefix caching off (cross-engine parity in our study)
dtype: fp8
max_tokens: 368640 # pool pinned to 368,640 KV token slots (see note below)
enable_chunked_prefill: true
extra.yaml — MAX_UTILIZATION arm (identical plus the policy):
kv_cache_config:
enable_block_reuse: false
dtype: fp8
max_tokens: 368640
enable_chunked_prefill: true
scheduler_config:
capacity_scheduler_policy: MAX_UTILIZATION
The server-side resolved config confirms the policy took effect: the launch log prints scheduler_config=SchedulerConfig(capacity_scheduler_policy=<CapacitySchedulerPolicy.MAX_UTILIZATION: 'MAX_UTILIZATION'>, ...) for the MAX_UTILIZATION arm and <CapacitySchedulerPolicy.GUARANTEED_NO_EVICT> for the baseline; both arms allocated the identical KV pool (Allocated 56.25 GiB for max tokens in paged KV cache (368640)). Excerpts are included in the repro bundle.
Note on the pinned pool: max_tokens: 368640 pins the KV pool to the same size across the three engines in our study (fraction-derived would have been ~403,680 tokens / 61.6 GiB on this GPU, so the cap binds). The pressure regime below is defined relative to this pool; with a larger pool the crossover point moves but the regime definition is the same.
Workload
- W-C (KV-pressure arm): 128 requests, each exactly 16,384 input tokens and up to 512 output tokens (
ignore_eoson), closed-loop concurrency 32, greedytemperature=0, streaming/v1/completions, two repeats with shuffled submission order (the request set is fixed; the repeat index seeds only the order shuffle). With ignore_eos, output lengths were verified two ways: by re-tokenizing the generated text and by the count of streamed content chunks (our client records both per request; it does not recordfinish_reason, andusageis not present in the streamed responses). GUARANTEED_NO_EVICT — every request in both repeats produced exactly 512 chunks re-tokenizing to exactly 512 tokens (totals 65,536/65,536). MAX_UTILIZATION — 3 of 256 request-runs (all in one repeat) received fewer than 512 content chunks from the server (509, 395, 329), i.e., those streams genuinely ended early server-side; becausefinish_reasonwas not recorded, we cannot determine the server-side stop cause post hoc. Two further request-runs (one per repeat) received the full 512 chunks but re-tokenize to 284 tokens — a decode→re-encode artifact of the re-tokenization, not early termination. Re-tokenized totals: 65,005/65,308 vs the nominal 65,536 (0.8% and 0.3% shortfall; see the counting-sensitivity note under the results table). The nominal full-residency demand of 32 concurrent sequences is 32 × 16,896 = 540,672 KV-token slots, 1.47× the configured pool. The pool therefore cannot keep all 32 sequences resident through their full requested lengths simultaneously. - W-B (control, not pool-bound): 512 requests × 2,048 in / 256 out, same client, concurrency 32; observed output lengths were exactly 256 for every request in all four runs.
- Warmup 32 requests @ concurrency 8 before measurement; fresh server per config; output tokens re-counted with the model tokenizer.
Metrics (definitions)
All metrics are client-side measurements taken by our benchmark client over streaming /v1/completions:
- Throughput = aggregate re-tokenized generated-text throughput: the sum of output tokens across all completed requests in a run divided by the wall-clock duration of the whole run, where each request's output tokens are counted by re-tokenizing its generated text with the model tokenizer. The client does not record server-side token counts (
usage) orfinish_reason; it does record the number of streamed content chunks per request, which we use as a server-side cross-check (see the counting-sensitivity note below). - TTFT (per request) = time from sending the request to client receipt of the first non-empty content chunk.
- TPOT (per request) =
(t_last − t_first) / (n_out − 1), wheret_first/t_lastare client receipt times of the request's first/last content chunks — i.e., the request's mean inter-token time, not a percentile over individual inter-token gaps. - End-to-end latency (per request) = time from send to the last received chunk.
- Reported p50/p99 are percentiles (linear interpolation) of these per-request values — percentiles over the 128 returned request records for W-C (512 for W-B).
Observed vs expected
Mean of the two repeats per cell. For aggregate output throughput, the largest difference between the two repeats of a cell was 0.7% (worst cell across our whole three-engine sweep); the observed 40.6% throughput delta is therefore much larger than the repeat-to-repeat variation seen in this experiment. Tail percentiles vary more between repeats; per-repeat TPOT p99 values are listed under the table.
W-C, concurrency 32 — KV-pressure regime
| policy | output tput (tok/s) | TTFT p50 (ms) | TPOT p50 (ms) | TPOT p99 (ms) | e2e p99 (s) |
|---|---|---|---|---|---|
| GUARANTEED_NO_EVICT (default) | 161.0 | 35,774 | 118.5 | 122.2 | 150.3 |
| MAX_UTILIZATION | 95.7 (−40.6%) | 27,145 | 122.6 | 1,110.7 (9.1×) | 563.1 (3.7×) |
Per-repeat TPOT p99 (W-C): GUARANTEED_NO_EVICT 122.0 / 122.5 ms; MAX_UTILIZATION 1,169.0 / 1,052.4 ms (the table shows the mean of the two repeats). Per-request raw values are included in the repro bundle for independent recomputation.
W-B, concurrency 32 — same server config, not pool-bound
| policy | output tput (tok/s) | TTFT p50 (ms) | TPOT p50 (ms) |
|---|---|---|---|
| GUARANTEED_NO_EVICT | 574.7 | 2,468 | 44.49 |
| MAX_UTILIZATION | 576.1 | 2,496 | 44.38 |
- TTFT p50 actually improves under MAX_UTILIZATION (27.1 s vs 35.8 s) on W-C — consistent with requests being admitted earlier; the aggregate token clock then slows ~40% and the tail explodes.
- Expected (naively, from the name and docs): equal-or-better utilization of the KV pool, at worst a modest tail cost. Observed: under KV pressure, output throughput, TPOT p50/p99, and end-to-end p99 were worse, while TTFT p50 improved. Off pressure, the two policies were effectively equivalent across the two repeats.
- Token-counting sensitivity: the −40.6% delta uses re-tokenized counts (see Metrics). Recomputing throughput from the same wall-clock durations with nominal counts (128 × 512 tokens per run) gives 161.0 → 96.2 tok/s (−40.2%); with server-emitted content-chunk counts, 161.0 → 96.0 tok/s (−40.4%). The conclusion is insensitive to the counting method.
- Our working hypothesis is that under oversubscription the policy admits more prefills than the pool sustains and then repeatedly pauses/evicts running requests, potentially including context recomputation for evicted requests, burning compute on repeated prefill. We have not confirmed the mechanism because we did not have a version-appropriate exposed counter for pause/evict/recompute activity in our setup —
trtllm-serve1.2.1 with the PyTorch backend exposed no/metricsendpoint we could poll, and we did not find an equivalent counter.
Reproducibility notes
- Both arms ran in the same Slurm job on the same GPU/node, fresh server per arm, identical warmup; the baseline arm reproduces the same config measured in a different job on a different node two days earlier within 0.6%.
- All request tasks reached a terminal stream state with no client-side or transport exceptions. However, 3 of 256 MAX_UTILIZATION W-C request-runs returned fewer than the requested 512 content chunks. Because
finish_reasonwas not recorded, we classify these as early-terminated outputs with unknown server-side cause, not as confirmed full-length completions. All 512 W-B requests returned the requested 256 chunks in every run. The server accepted the policy (verified in the server-side resolved-config dump, quoted above). - A self-contained repro bundle (launch script, both YAMLs, workload generator, benchmark client, per-repeat raw results with per-request rows, resolved-config excerpts): https://gist.github.com/Smallfu666/c896b3461e055b3bd59a986cb06d6815 (16 files: launch script, both YAMLs, deterministic workload generator, benchmark client, all 8 per-repeat raw result sets with per-request rows, and both server resolved-config excerpts)
Misc discussion on performance
Questions for the team:
- Is this magnitude of degradation under KV-cache oversubscription known/expected for MAX_UTILIZATION? The docs frame it as maximizing batch utilization with possible eviction; if a ~40% throughput and ~9× TPOT-p99 penalty in oversubscribed regimes is the intended trade-off, a warning in the
scheduler_configdocs would save users from discovering it in production. - Is there a regime where MAX_UTILIZATION is expected to win? In the two concurrency-32 regimes tested it was neutral off-pressure and worse under pressure on the metrics listed; we may simply not have hit the regime the policy is designed for.
- Observability: what is the supported way to observe pause/evict/recompute activity from
trtllm-servewith the PyTorch backend in 1.2.1? Specifically: doiter_stats_max_iterations/request_stats_max_iterationsorreturn_perf_metricsin the LLM-API config apply totrtllm-serveon the PyTorch backend in 1.2.1, and is the Prometheus/metricsendpoint documented for other frontends available in this configuration? In our runs the resolved config showedreturn_perf_metrics=Falseandrequest_stats_max_iterations=None(defaults), and the server exposed no/metricsendpoint.
Related prior report: the closest issue we found is #9931, where enabling MAX_UTILIZATION under KV-cache exhaustion produced a crash on 1.2.0rc builds. That issue is now closed. We did not identify a linked fix commit. Our v1.2.1 runs did not crash; all requests completed, but they showed severe performance degradation in the same broad policy-plus-KV-pressure regime. We do not know whether the mechanisms are related.
Happy to run additional configurations (different pool sizes, concurrencies, or a 1.3.0 RC) if that helps.
Your current environment
System Information:
- OS: Ubuntu 24.04.3 LTS (inside NGC container); host cluster runs Slurm with cgroup GPU isolation
- Python version: 3.12.3
- CUDA version: 13.1 (in-container nvcc V13.1.80; host driver reports CUDA 13.0)
- GPU model(s): 1× NVIDIA H200 (141 GB)
- Driver version: 580.65.06
- TensorRT version: 10.14.1.48
- PyTorch version: 2.10.0a0+b4e4ee81d3.nv25.12
- TensorRT-LLM version: 1.2.1
- Container:
nvcr.io/nvidia/tensorrt-llm/release:1.2.1, image manifest digestsha256:b5f9b403c414d663fbdb7be754b90a063785d28827ca418184fa2497b644ec04(linux/amd64), NGC build id 245654590; run via Apptainer 1.4.3; SIF SHA2564a4c6fc242c818b20ea8346c0680440c64efaa6c7d2f7a34034a7464ccd455f0 - Model checkpoint:
nvidia/Llama-3.3-70B-Instruct-FP8@ revisionfde04ee76a27704c88f569542ef023b57d4d0362;model.safetensors.index.jsonSHA2566398071a55c63422e6607f3a2e5b9a28a90f51090aca7a2313386f42a3d957ec
Detailed output:
$ nvidia-smi
NVIDIA-SMI 580.65.06 Driver Version: 580.65.06 CUDA Version: 13.0
GPU 0: NVIDIA H200 (143771 MiB), Persistence-M: On, ECC: 0 (enabled)
$ nvcc --version # inside container
Cuda compilation tools, release 13.1, V13.1.80
$ python3 --version # inside container
Python 3.12.3
$ pip show tensorrt torch tensorrt_llm # inside container
tensorrt 10.14.1.48
torch 2.10.0a0+b4e4ee81d3.nv25.12
tensorrt_llm 1.2.1
# selected container labels (apptainer inspect, NGC release:1.2.1, build id 245654590):
cuDNN 9.17.0.29, NCCL 2.28.9+cuda13.0, cuBLAS 13.2.0.9, flashinfer-python 0.6.4
base image: nvcr.io/nvidia/tensorrt-llm/release:1.2.1 (Ubuntu 24.04)
- [x] Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
@Smallfu666, thank you for providing detailed information! I noticed that the 1.2.1 version is being used in this report. While it’s the latest stable version, most development has been focused on the 1.3.0rc versions. Would you be able to try the latest 1.3.0rc version as well? Thanks!
Thanks for pointing us at the 1.3.0 RC line — we re-ran the experiment on 1.3.0rc22, and the short answer is that we cannot reproduce the cliff there. Details below, including a correction to something we got wrong in the original report and a config-merge issue we found while diffing the two versions.
TL;DR
Using the same GPU SKU and driver, the same checkpoint and workload hashes, and identical server
flags and --config content — but a different node and a newer container stack — under the same
KV-cache oversubscription:
| v1.2.1 (original report) | v1.3.0rc22 (this re-test) | |
|---|---|---|
| output throughput, MAX_UTILIZATION vs default | −40.6% | −0.9% |
| TPOT p99, MAX_UTILIZATION vs default | 9.09× | 1.15× |
| end-to-end p99, MAX_UTILIZATION vs default | 3.75× | 1.03× |
The GUARANTEED_NO_EVICT baseline is essentially unchanged across the two versions (161.0 → 160.7
tok/s, −0.2%), while the MAX_UTILIZATION arm went from 95.7 to 159.2 tok/s (+66.4%) with TPOT p99
dropping 1,110.7 → 140.9 ms (−87.3%). The stable baseline argues against a broad environment-wide
throughput shift, but it does not isolate which component of the newer stack changed the
MAX_UTILIZATION behavior.
On rc22, MAX_UTILIZATION in this regime looks like what the docs describe: a small throughput and
tail cost in exchange for earlier admission (TTFT p50 is still ~9% better than the default), rather
than a cliff. We are not claiming to know which change is responsible — see "What we did not
determine" at the end.
Results — W-C (KV-pressure workload), concurrency 32, mean of 2 repeats
| version | policy | output tput (tok/s) | TTFT p50 (ms) | TPOT p50 (ms) | TPOT p99 (ms) | e2e p50 (s) | e2e p99 (s) |
|---|---|---|---|---|---|---|---|
| 1.2.1 | GUARANTEED_NO_EVICT | 161.0 | 35,774 | 118.5 | 122.2 | 92.4 | 150.3 |
| 1.2.1 | MAX_UTILIZATION | 95.7 (−40.6%) | 27,145 | 122.6 | 1,110.7 (9.09×) | 90.2 | 563.1 (3.75×) |
| rc22 | GUARANTEED_NO_EVICT | 160.7 | 35,526 | 118.5 | 122.5 | 91.7 | 150.1 |
| rc22 | MAX_UTILIZATION | 159.2 (−0.9%) | 32,206 | 123.4 | 140.9 (1.15×) | 95.1 | 155.2 (1.03×) |
Per-repeat rc22 values (the table shows the mean of two repeats; the repeat index seeds only the submission-order shuffle):
| arm | repeat | tput | TTFT p50 | TPOT p50 | TPOT p99 | e2e p99 | duration |
|---|---|---|---|---|---|---|---|
| GUARANTEED_NO_EVICT | 0 | 160.69 | 35,628 | 118.45 | 122.6 | 149.8 s | 407.83 s |
| GUARANTEED_NO_EVICT | 1 | 160.71 | 35,424 | 118.56 | 122.4 | 150.4 s | 407.78 s |
| MAX_UTILIZATION | 0 | 159.36 | 32,170 | 123.45 | 140.9 | 154.7 s | 411.25 s |
| MAX_UTILIZATION | 1 | 159.02 | 32,243 | 123.43 | 140.9 | 155.6 s | 412.12 s |
Also on rc22, and unlike 1.2.1: every request produced its full requested output in all four runs
— 128/128 completed, all finish_reason: "length", all 512 streamed content chunks re-tokenizing to
exactly 512 tokens, totals 65,536/65,536 for both arms. The ~0.3–0.8% output-token shortfall and the
handful of short streams we saw under 1.2.1 MAX_UTILIZATION do not appear. Consequently all three
token-counting methods agree exactly on rc22 (re-tokenized / streamed-chunk / nominal all give
160.70 and 159.19 tok/s), so the counting-sensitivity caveat from the original report is moot here.
Mechanism evidence: the pause counter (this is our question 3, now answered)
On rc22 we ran two extra short probe arms with iteration stats enabled and polled /metrics
throughout. These probe arms are not part of the performance comparison — they carry extra
instrumentation, ran 64 requests instead of 128, and one repeat only — but they show what the
scheduler is doing:
| probe arm | iterations sampled | numPausedRequests |
numPausedKvTokens |
min kvCacheStats.freeNumBlocks |
|---|---|---|---|---|
| GUARANTEED_NO_EVICT | 3,059 (iters 32–3,094; 99.9% of the range) | 0 in every iteration | 0 | 437 / 11,520 |
| MAX_UTILIZATION | 2,586 (iters 32–2,621; 99.8% of the range) | 1 in 2 of 2,586 iterations | max 16,723, sum 33,319 | 0 / 11,520 |
So on rc22 MAX_UTILIZATION does what it says — it drives the pool to zero free blocks and does
enter the pause path. numPausedRequests was non-zero in only 2 of 2,586 sampled iterations: this
confirms the pause path was reached, while showing no sustained high-frequency pause pattern in this
probe. (The counter is per-iteration state, so we can't read it as an event count — one pause
spanning two iterations and two separate pauses look the same here.) That is consistent with the ~1%
throughput cost and the 1.15× tail we measure, and it is the counter we were missing when we filed
the issue.
Observability — a correction to our original report
We were wrong to say 1.2.1 "exposed no /metrics endpoint". Grepping the installed source in both
containers: 1.2.1 already registers /metrics, /perf_metrics, /kv_cache_events and
/steady_clock_offset (and mounts /prometheus/metrics when return_perf_metrics is set); rc22
registers those plus /energy_metrics. Sorry for the noise. What we actually hit is that the
endpoints return an empty body under the default configuration. On rc22, with the exact config from
our original report:
GET /metrics -> 200, [] (168/168 and 170/170 polls empty across both measured arms)
GET /perf_metrics -> 200, []
POST /kv_cache_events -> 200, []
GET /energy_metrics -> 503, {"error":"Energy monitoring is not available"}
GET /server_info -> 200
with return_perf_metrics=False, enable_iter_perf_stats=False, iter_stats_max_iterations=None,
request_stats_max_iterations=None in the resolved config — all defaults. What made /metrics
actually stream iteration stats for us was adding to the extra-LLM-API YAML:
# This combination produced iteration stats in our rc22 setup; we did not
# ablate them individually, so we can't say which are strictly required.
return_perf_metrics: true
enable_iter_perf_stats: true
iter_stats_max_iterations: 1000
Two follow-ups on that, if you have a moment:
- Is that the supported recipe, or is there a documented one we missed? A line in the
scheduler_config/trtllm-servedocs saying "iteration stats are off by default; set these three to see pause/evict activity" would have saved us the original question entirely. /perf_metricsstill returned[]for us even withreturn_perf_metrics: true— the resolved config showsperf_metrics_max_requests=0. Isperf_metrics_max_requests > 0the intended additional requirement, and is that expected to be user-set?
Also, the pause counter is not new. InflightBatchingStats in 1.2.1 already has
numPausedRequests; rc22 adds the KV-token-level detail we used above — numPausedKvTokens,
numCtxKvTokens, numGenKvTokens, numQueuedContextRequests, numQueuedCtxTokens,
numQueuedGenRequests, numQueuedGenKvTokens. So the counter existed all along; it was off by
default and we did not find it. (We read rc22's Prometheus collector source and it does define a
num_paused_requests gauge, whereas 1.2.1's does not — but we only exercised the JSON /metrics
path at runtime, not the Prometheus one, so treat that as source-level observation, not a measurement.)
A config-merge footgun worth a docs note
While diffing the two versions' resolved configs we noticed our 1.2.1 arms were not matched on
dynamic_batch_config:
- baseline arm — no
scheduler_config:block in the YAML at all — resolved toSchedulerConfig(capacity_scheduler_policy=GUARANTEED_NO_EVICT, context_chunking_policy=None, dynamic_batch_config=DynamicBatchConfig(enable_batch_size_tuning=True, enable_max_num_tokens_tuning=False, dynamic_batch_moving_average_window=128)) - MAX_UTILIZATION arm — YAML contains
scheduler_config: {capacity_scheduler_policy: MAX_UTILIZATION}— resolved toSchedulerConfig(..., dynamic_batch_config=None)
i.e. writing the scheduler_config block to set only the policy also turned batch-size tuning
off, because the supplied block replaces the default SchedulerConfig wholesale. So the 1.2.1
numbers in our original report carry dynamic_batch_config as a co-variate; we should have caught
that and did not.
This means the original 1.2.1 comparison was confounded: it was not a policy-only A/B test. On rc22
the default is dynamic_batch_config=None for both arms, so the rc22 comparison above does not
carry this co-variate. The near-identical baselines across versions show no obvious large net shift
in the default arm, but they do not isolate the effect of dynamic_batch_config — node, TensorRT-LLM,
CUDA, TensorRT, PyTorch and several defaults all moved at the same time, and effects could offset.
We therefore cannot quantify how much of the original 40.6% delta came from the policy itself versus
the resolved-config difference without a matched 1.2.1 rerun (both arms pinning the same
dynamic_batch_config), which we're happy to run if it's useful.
Separately, if the merge-replaces-default behaviour is intended, it seems worth a docs note: on
1.2.x, setting scheduler_config.capacity_scheduler_policy in the YAML is not a policy-only change.
What was held fixed, and what necessarily moved (environment lineage)
| v1.2.1 run (original report) | v1.3.0rc22 run (this reply) | |
|---|---|---|
| Container | nvcr.io/nvidia/tensorrt-llm/release:1.2.1 |
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc22 |
| NGC build id / ref | 245654590 / 0214a1e1471678f0c2928e94807c940c6961ca2c |
313520559 / 30a5fc6cbfce157e75fae3d0cf1fd8e273a3dc25 |
pip show tensorrt_llm / GET /version |
1.2.1 | 1.3.0rc22 |
| GPU + driver | 1× H200 141 GB, driver 580.65.06, CUDA 13.0 (host nvidia-smi) |
same driver 580.65.06, CUDA 13.0, 1× H200 141 GB |
| Node | one H200 node of the cluster | a different node, same GPU SKU, same driver |
| In-container CUDA toolkit | nvcc 13.1.80 | nvcc 13.2.78 |
| cuDNN / NCCL / TensorRT | 9.17.0.29 / 2.28.9 / 10.14.1.48 | 9.22.0.52 / 2.30.4 / 10.16.1.11 |
| PyTorch | 2.10.0a0+b4e4ee81d3.nv25.12 | 2.12.0a0+5aff3928d8.nv26.05 |
| transformers | 4.57.3 | 5.5.4 |
| Container OS / Python | Ubuntu 24.04.3 / 3.12.3 | Ubuntu 24.04.4 / 3.12.3 |
| Model | nvidia/Llama-3.3-70B-Instruct-FP8 rev fde04ee76a27704c88f569542ef023b57d4d0362, model.safetensors.index.json SHA256 6398071a55c63422e6607f3a2e5b9a28a90f51090aca7a2313386f42a3d957ec |
same directory, same hash |
| Workload file | w_c.jsonl SHA256 6e4091e441c7d09cdf60c4ef77e403771acecf3367616b093418f3d221041832 |
same file, same hash |
| Server flags | --backend pytorch --tp_size 1 --max_batch_size 64 --max_num_tokens 8192 --max_seq_len 20480 --kv_cache_free_gpu_memory_fraction 0.90 |
identical |
--config content |
as quoted in the original issue | identical, same two YAMLs |
| KV pool actually allocated | Allocated 56.25 GiB for max tokens in paged KV cache (368640) |
same 56.25 GiB / 368640 |
| Policy in resolved config | CapacitySchedulerPolicy.{GUARANTEED_NO_EVICT,MAX_UTILIZATION} |
same enums, verified per arm |
| Client | our closed-loop streaming client | same metric code, plus finish_reason/usage capture |
Everything shipped inside the container moved with the version — we cannot separate the TensorRT-LLM change from its CUDA / cuDNN / NCCL / TensorRT / PyTorch bump, and we are not trying to. The node also differs (same SKU, same driver); the unchanged baseline arm is our evidence that this did not matter here.
New scheduler/KV defaults we can see in the rc22 resolved config that 1.2.1 did not have (we did not
sweep any of them; listing them because a flipped default is a plausible part of what we measured):
SchedulerConfig gained waiting_queue_policy (FCFS), use_python_scheduler (False) and
enable_prefix_aware_scheduling (True); KvCacheConfig gained max_util_for_resume (0.95),
use_kv_cache_manager_v2 (False, so this model stays on the V1 manager),
enable_kv_pool_rebalance (False), block_reuse_policy ('all_reusable') and
iteration_stats_interval (1).
What we did not determine
- Which change fixed it. The one release note we found that names the policy is on v1.3.0rc19:
"Fix
MAX_UTILIZATIONreuse token budget (#15066)". We cannot claim that is the explanation for our numbers, because our config runs withenable_block_reuse: false(prefix caching off), so a reuse-token-budget correction plausibly does not bind for us at all. If you can point at what does apply here we would be glad to know — and if it would help, we can bisect across RC tags on this exact config. - W-B (the off-pressure control) was not re-run — on 1.2.1 the two policies were equivalent there, so W-C is the informative cell. Happy to add it.
- Scope. W-C × concurrency 32 × 2 repeats per arm, one node, one GPU, TP=1, one pool size, one model. We are not extrapolating to other concurrencies, pool sizes, TP degrees or models, and the numbers are client-side measurements in our environment.
Given all of the above: the severe behavior we observed in our original 1.2.1 configuration was not
reproduced on rc22. Because the original 1.2.1 arms also differed in dynamic_batch_config, we
cannot characterize the original result as a clean policy-only regression without a matched 1.2.1
control. Do
say if you would like the raw per-request data for the rc22 runs (per-request rows, resolved-config
dumps, the /metrics iteration-stat series behind the pause table, and the job script) — we have a
sanitized bundle ready to attach.
Excellent follow-up, particularly the resolved-config comparison. The dynamic_batch_config discovery may actually be one of the most generally useful findings in this thread.
We’re building MemForge, a measurement-guided GPU/inference diagnostics and optimization system:
https://github.com/elmehdi-eljair/memforge
This investigation highlights something we think performance tooling should treat as a first-class invariant:
benchmark the resolved runtime configuration, not merely the configuration delta the user intended to make.
In this case the intended experiment was approximately:
capacity_scheduler_policy: GUARANTEED_NO_EVICT → MAX_UTILIZATION
but on 1.2.1 the effective experiment also changed dynamic_batch_config, so it was no longer a one-variable A/B.
A useful pre-benchmark check would therefore be:
intended changed fields: 1 resolved changed fields: 2+
=> experiment contains configuration covariates => causal attribution should be rejected or downgraded
We want to add exactly this kind of resolved-config semantic diff to MemForge before it accepts an optimization result.
The second interesting dimension is the operating regime. Rather than classifying a scheduler policy as globally faster/slower, I think it is useful to explicitly model:
active KV working set / available KV capacity
and correlate that ratio with:
free blocks paused requests paused KV tokens recomputed/prefill work throughput TTFT TPOT tails
That would let us discover the pressure crossover instead of relying on one workload point.
The rc22 results are a good example: MAX_UTILIZATION actually reaches zero free blocks and enters the pause path, but only rarely in the instrumented run, which is consistent with the much smaller performance penalty you observe there.
Another useful diagnostic lesson is the metrics endpoint behavior: an endpoint returning 200 [] is not equivalent to the runtime lacking the metric. Tooling should distinguish:
metric unsupported metric supported but disabled metric enabled but no events observed
We are planning to incorporate these ideas into MemForge as:
resolved-config diffing, experimental-confound detection, KV-pressure/scheduler-thrashing analysis, and version/default-drift analysis.
Great example of an investigation getting more valuable after the original hypothesis was weakened.
MemForge: https://github.com/elmehdi-eljair/memforge