You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose KV-cache hit metrics by storage tier #18465
TensorRT-LLM exposes aggregate KV-cache metrics such as kv_cache_hit_rate and prompt_cached_tokens_total, plus host-cache utilization and onboard/offload byte counters.
When KV-cache offloading is enabled, these metrics do not identify whether reused tokens were served from GPU memory, host memory, disk, or another tier. Transfer counters cannot reliably reconstruct cache-hit attribution.
Request
Please expose monotonic Prometheus counters attributing reused tokens or blocks to their source tier, for example:
An equivalent tier-labeled cache-hit counter would also work. Ideally:
Every cache hit is attributed to exactly one tier.
Tier totals sum to the existing aggregate value.
Host-cache hits are distinguishable from GPU-resident prefix-cache hits.
Metrics work with disaggregated serving and supported KV-cache managers.
Existing aggregate metrics remain available for compatibility.
Counter and reset semantics are documented.
Motivation
This would allow users to measure whether CPU offloading is actually serving requests, evaluate each cache tier, and correctly visualize token sources. Host utilization and transfer volume show data movement, but not whether requests benefited from host-cache hits.
Activity
zheyuf commentedon Sep 2, 2026
Remove self-assign as @yizhang-nv already has an open PR.
[#18465][feat] Track KV cache reuse hit tokens by source tier (#18583)