Serving long-context LLMs is challenging because request lengths and batch composition vary during token generation, causing the memory footprint to fluctuate significantly at runtime. Offloading KV caches to host memory limits effective GPU memory usage, but existing static and predetermined offloading strategies cannot adapt to the rapidly shifting memory demands of long-context serving. This often leads to excessive CPU-to-GPU KV transfers that translate into latency spikes and frequent SLO violations. To address these challenges, we introduce OrbitFlow, a finegrained and adaptive KV cache management system that meets latency SLOs in long-context LLM serving. OrbitFlow employs a lightweight ILP solver to decide which layers' KV caches to retain on the GPU for each request, within memory capacity constraints. It continuously refines KV placements based on runtime feedback when the active plan becomes suboptimal during token generation. Under heavy load, OrbitFlow invokes a fallback mechanism to temporarily defer in-flight requests with large memory footprints, preserving overall SLO attainment. Our experiments demonstrate that OrbitFlow improves SLO attainment for TPOT and TBT by 62% and 66%, respectively, while reducing the 95th percentile (i.e., P95) latency by 38% and achieving up to 3.3× higher throughput compared to existing offloading methods.
Building similarity graph...
Analyzing shared references across papers
Loading...
Xinyue Ma
Heelim Hong
Taegeon Um
Proceedings of the VLDB Endowment
Pohang University of Science and Technology
Ulsan National Institute of Science and Technology
Samsung (United States)
Building similarity graph...
Analyzing shared references across papers
Loading...
Ma et al. (Thu,) studied this question.
www.synapsesocial.com/papers/69fbefef164b5133a91a40e8 — DOI: https://doi.org/10.14778/3796195.3796214