Radix & VRAM Tuning
Preventing Radix Cache Thrashing via --max-running-requests
Cap active decode concurrency to stop SGLang from evicting warm prefix branches and forcing expensive token recomputation.
Zero Recomputation Loops · Stable p99 TTFT Under Surge
Spotting Radix Cache Thrashing
When too many requests enter decode simultaneously, the scheduler evicts cached prefix nodes to make room for new output tokens—only to re-prefill those exact prefixes seconds later.
Setting the Concurrency Ceiling
Match --max-running-requests to the batch count validated in the VRAM Workbench so queue admission waits briefly rather than thrashing HBM.
Measured Thresholds & SGLang Flag Matrix
| Pool Pressure State | Scheduler Behavior | Tuning Fix |
|---|---|---|
| KV Utilization < 80% | Warm radix branches retained | Optimal steady state |
| KV Utilization 95%+ | LRU evicts active/warm prefixes | Lower --max-running-requests |
| Queue Saturation | Re-prefill thrashing spikes latency | Enable fp8_e5m2 KV or step up GPU |