GPU Bottlenecks in LLM Serving: How KV Cache Scheduling Determines Concurrency
Why do large model platforms run out of compute capacity? This article explains the two phases of LLM inference, how KV cache memory limits peak concurrent sessions, and the engineering strategies—cache tiering, continuous batching, prefix reuse, quantization, and elastic scaling—that help serve more users with limited GPU resources.
GPU Bottlenecks in LLM Serving: How KV Cache Scheduling Determines Concurrency
Recently, a major LLM chat platform announced it was suspending new membership sign-ups due to strained compute resources, sparking wide discussion in the developer community. On the surface, this looks like an operational announcement. But from a systems engineering perspective, it reflects a core challenge in LLM inference serving: how to determine and sustain the peak number of concurrent users when GPU resources are finite. This article strips away the product-specific context and examines the problem from a general technical standpoint, along with practical engineering strategies for addressing it.
1. Why Compute Is a Hard Constraint for LLM Serving
Unlike traditional web services, the throughput of LLM inference is almost entirely dictated by GPU compute and memory bandwidth. A typical inference request consists of two phases:
- Prefill phase: The user’s entire input is encoded at once, attention is computed, and the KV cache is built. This phase is compute-intensive, with high GPU utilization.
- Decode phase: Output tokens are generated one at a time, and each new token requires reading the full KV cache. This phase is limited by memory bandwidth rather than raw compute—a classic memory-bound scenario.
During the Decode phase, the GPU is often already running at full capacity near its bandwidth ceiling. This means: the token generation rate per GPU has a physical upper limit, and so does the number of active sessions that can be maintained simultaneously. When request spikes arrive, the platform must either queue them or reject new ones outright—that is the technical reality behind “suspending sign-ups.”
2. The KV Cache: The Hidden Ledger of Concurrency Capacity
Peak parallel user count is determined not only by compute but also by the memory occupied by KV caches. Every active session maintains a set of Key-Value tensors in GPU memory, sized proportionally to sequence length, number of layers, and hidden dimensions. In long-context scenarios, a single session’s KV cache can reach hundreds of MB or even several GB.
A simplified estimation model illustrates the capacity constraint:
Concurrent sessions per GPU ≈ (Total GPU memory - Model weight footprint) / KV cache size per sessionOverall throughput ≈ Per-GPU token generation rate × Number of GPUs × Batching efficiency
There are only three ways to increase concurrency: add more GPUs, compress the KV cache per session, or improve scheduling efficiency.
3. Session-Level Cache Eviction: A Pragmatic Trade-off
Chat applications have a distinctive usage pattern: many sessions are “one-time” conversations. After asking about the weather or a factual question, users often never return to the same session. Even in longer conversations, the probability of a user iterating on the same session multiple times within a day is relatively low.
This pattern creates room for cache scheduling. Unlike database or web caches, where a cache hit always carries value, a conversation’s KV cache can be safely discarded while the session is temporarily inactive—it is fundamentally an acceleration mechanism, not the data itself. A common tiered strategy in industry looks like this:
- Hot data stays in GPU memory: KV caches for currently active sessions remain in GPU memory to ensure low latency during Decode.
- Warm data is offloaded to host memory or SSD: KV caches for paused sessions can be asynchronously swapped out to CPU memory or fast solid-state storage, and swapped back in when the user resumes—with only a modest increase in first-token latency.
- Cold data is discarded outright: Caches for sessions that have been inactive for a long time are simply released. If the user later reopens the session, the history can be restored from persistent storage—or, accepting the cost, the full history can be re-prefilled.
Re-running Prefill may seem wasteful, but it is a rational trade: a one-time compute cost in exchange for long-term release of GPU memory, enabling more concurrent users to be served. During periods of compute scarcity, this “trade compute for memory” approach is often key to keeping the service available.
4. Scheduling and Capacity Planning in Practice
Beyond cache eviction, there is a full toolkit of general engineering measures for relieving compute pressure:
1. Continuous Batching
Traditional static batching requires all requests in a batch to start and finish together, leaving GPUs idle. Continuous batching allows requests to join and leave the batch at token granularity: as soon as a session finishes generation and its KV cache is released, a new request takes its place, keeping the GPU near full utilization. This is now a standard capability in mainstream inference frameworks and can boost throughput severalfold.
2. Prefix Cache Reuse
Shared prefixes such as system prompts are highly repetitive across sessions. Reusing their KV caches across sessions significantly reduces redundant Prefill computation, with particularly large gains in agent-style applications.
3. Model-Side Compression
KV cache quantization (e.g., reducing precision from FP16 to INT8), attention architecture variants such as grouped-query attention, and speculative decoding can all reduce memory footprint and increase generation speed without significant quality loss, easing pressure on the supply side.
4. Elastic Scaling and Traffic Governance
By orchestrating inference instances on container platforms and monitoring queue depth, first-token latency, and token throughput in real time, operators can scale down during traffic troughs and scale up during peaks. Excess traffic can be handled with tiered rate limiting and queueing strategies that prioritize the experience of existing paying users—which is precisely the traffic-governance rationale behind “suspending new sign-ups”: rather than degrading the experience for everyone, it is better to restrict entry proactively.
5. Hybrid Deployment and Cost Optimization
Routing requests to models of different sizes is a common way to control overall compute consumption: simple questions go to smaller models, and only complex ones invoke the large model. For enterprises building their own inference services, combining GPU compute, object storage (for persisting cold KV cache data), and container orchestration on mainstream cloud platforms makes it relatively quick to build such a tiered scheduling system without a heavy upfront capital investment.
5. Conclusion: Compute Scarcity Is the Norm, Not the Exception
Returning to the original question: how should we view a platform suspending sign-ups due to compute constraints? From an engineering standpoint, it is not a failure of service capability but a rational response to supply-demand imbalance. LLM inference is fundamentally “exchanging expensive memory bandwidth for tokens,” and during periods of explosive demand growth, every platform eventually hits physical limits.
For developers, the most valuable takeaways are: understand the resource characteristics of the Prefill and Decode phases, master the lifecycle management of KV caches, and make good use of general-purpose techniques such as continuous batching, prefix reuse, and elastic scaling. Whether you run your own infrastructure or rely on cloud GPUs, these principles are the common foundation for building highly available, cost-effective LLM services. Compute will always be scarce—and a well-designed scheduling architecture is the art of extracting maximum value from that scarcity.
