KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider
Wang, Jiahao, Han, Jinbo, Wei, Xingda, Shen, Sijie, Zhang, Dingyan, Fang, Chenguang, Chen, Rong, Yu, Wenyuan, Chen, Haibo
–arXiv.org Artificial Intelligence
Serving large language models (LLMs) is important for cloud providers, and caching intermediate results (KV\$) after processing each request substantially improves serving throughput and latency. However, there is limited understanding of how LLM serving benefits from KV\$ caching, where system design decisions like cache eviction policies are highly workload-dependent. In this paper, we present the first systematic characterization of the KV\$ workload patterns from one of the leading LLM service providers. We draw observations that were not covered by previous studies focusing on synthetic workloads, including: KV\$ reuses are skewed across requests, where reuses between single-turn requests are equally important as multi-turn requests; the reuse time and probability are diverse considering all requests, but for a specific request category, the pattern tends to be predictable; and the overall cache size required for an ideal cache hit ratio is moderate. Based on the characterization, we further propose a workload-aware cache eviction policy that improves the serving performance under real-world traces, especially with limited cache capacity.
arXiv.org Artificial Intelligence
Jul-24-2025
- Country:
- Asia
- Europe
- Austria > Vienna (0.14)
- Germany (0.04)
- Switzerland > Vaud
- Lausanne (0.04)
- United Kingdom (0.04)
- North America > United States
- California
- Los Angeles County > Long Beach (0.04)
- Orange County > Anaheim (0.04)
- San Diego County > Carlsbad (0.04)
- San Francisco County > San Francisco (0.14)
- Santa Clara County
- Palo Alto (0.04)
- Santa Clara (0.05)
- Georgia > Fulton County
- Atlanta (0.04)
- Illinois > DuPage County
- Lombard (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Massachusetts > Suffolk County
- Boston (0.04)
- Washington > King County
- Renton (0.04)
- California
- Oceania > Australia
- New South Wales > Sydney (0.04)
- South America
- Argentina > Pampas
- Buenos Aires F.D. > Buenos Aires (0.04)
- Chile > Santiago Metropolitan Region
- Santiago Province > Santiago (0.04)
- Argentina > Pampas
- Genre:
- Research Report (0.64)
- Industry:
- Information Technology > Services (0.70)
- Technology: