LLM Inference Capacity Planning and Concurrency Limits: A Practical Guide
When user demand far outruns the assumptions behind a capacity plan, the fix is not simply "more GPUs." This article works through the concurrency model behind LLM inference services: why decode throughput and memory bandwidth, not raw FLOPs, set the user ceiling; how to estimate peak concurrency from per-GPU decode throughput and per-user output rate; why KV cache is the dominant memory consumer and also safely evictable; and which software controls — continuous batching, admission control, tiered KV cache storage, and elastic scaling — raise effective concurrency before hardware catches up. It closes with the product-level half of the loop: treating a temporary pause on new sign-ups as a deliberate capacity valve that protects existing users.
1. A Real Failure Mode: When Capacity Assumptions No Longer Hold
A recent LLM service, after a new release drew far more users than expected, announced it was temporarily pausing new membership sign-ups because compute was tight — while stating that existing members would be unaffected and could continue using the service.
Strip away the specific product and this is a classic distributed systems problem: when actual demand substantially exceeds the capacity assumptions, how does the operator protect the service quality of existing traffic through resource scheduling and admission control?
The problem is especially acute for LLM inference, for three reasons:
- A single request costs far more compute than a typical web request; one long-form generation can run for tens of seconds.
- GPU memory is a hard constraint — unlike CPU capacity, it cannot be oversubscribed with a queue.
- User growth is highly non-linear. A version upgrade, a round of press coverage, or a viral moment can produce an order-of-magnitude jump in concurrency.
So “pausing sign-ups” is not a service collapse. It is an active capacity valve: it protects the experience of existing users first and keeps new demand outside the door so overall service quality does not cascade into collapse. Understanding that decision starts with understanding the compute consumption model of LLM inference.
2. Why the Concurrency Ceiling of a Chat Service Is Set by GPUs
2.1 Two phases: prefill and decode
Generating one response normally splits into two phases:
- Prefill — all input tokens are processed in a single pass. It is compute-heavy, bounded by FLOPs, and compute-bound.
- Decode — tokens are generated one at a time autoregressively. Each step processes only a single new token but must read the cached state for all prior history. It is memory-bandwidth-bound.
Prefill is like reading the whole question; decode is like writing out the answer character by character. When a service carries a large volume of interactive chat traffic, the bottleneck usually lands in decode.
2.2 The memory bandwidth bottleneck in decode
Every new token in the decode phase requires reading model weights and the historical KV cache out of GPU memory. Because the compute per step is tiny, the GPU’s arithmetic units sit largely idle — what is actually under pressure is memory bandwidth. Data cannot reach the compute units fast enough, so additional FLOPs buy nothing.
This means the meaningful measure of decode capability is not “how many multiply-adds per second” but “how many bytes per second can be moved out of GPU memory.” It also explains why a slightly constrained memory footprint is often survivable: the service can compensate by raising throughput rather than failing outright.
2.3 From throughput to concurrency
For a chat assistant, a rough but practical capacity model is:
Peak concurrent users ≈ total cluster decode throughput (tokens/s) / average per-user output rate (tokens/s)
For example, if total cluster decode throughput is 100,000 tokens/s and the average output rate needed for a comfortable reading experience is 50 tokens/s, the theoretical peak concurrency is roughly 2,000 users.
The model surfaces the key conclusion: GPU count determines the cluster’s total decode throughput, and total throughput divided by the per-user rate gives the peak concurrency ceiling. Insufficient memory is not fatal — as long as generation is fast enough, the service can finish the current user’s tokens, evict their cache, and load the next request. This is precisely the “trade speed for space” scheduling approach.
3. KV Cache: Memory Pressure and Evictability
3.1 What KV cache is
In autoregressive generation, the Key/Value tensors of each token are cached to avoid recomputation and reused by later steps. This is the KV cache. It grows linearly with sequence length and concurrency, and is one of the main sources of GPU memory consumption. Its footprint can be approximated as:
KV cache bytes ≈ 2 (K and V) × num_layers × sequence_length × hidden_dim × bytes_per_value × concurrency
Precision (for example, 2 bytes for half precision) and concurrency have a pronounced effect on the total. Higher concurrency and longer context mean a larger cache and tighter memory.
3.2 Why KV cache can be evicted
Unlike a traditional database, a large share of chat sessions are one-shot: a user asks “what’s the weather tomorrow” or “any news on that event” and often never revisits the conversation that day. Even for long-running threads, users rarely iterate on the same session at high frequency within a short window.
Given that characteristic, an operator can adopt aggressive caching policies: to serve more concurrent online users, the KV cache of low-value sessions can be dropped or evicted first. When a user returns later, the cache is loaded back from slower-tier storage (such as SSD) or the full history is re-prefilled from scratch. From the user’s perspective, the worst case is a slightly longer wait — an acceptable trade for materially higher concurrency capacity.
3.3 Tiered caching in practice
Modern inference services commonly use a tiered cache design that resembles an operating system’s virtual memory:
- GPU memory (HBM): holds only the caches of currently active sessions that are generating tokens.
- Host memory (DRAM): holds recently likely-to-resume sessions.
- Solid-state storage: archives long-idle sessions for on-demand loading later.
With paged management — slicing contiguous GPU memory into fixed-size blocks allocated and reclaimed on demand — operators can substantially reduce memory fragmentation and raise concurrency density. The essence of this mechanism is trading cache for concurrency: the goal is not to keep every session resident in GPU memory, but to keep GPU memory filled with the requests that most need to be processed right now.
4. The Core Tension in Capacity Planning
4.1 Demand spikes are unpredictable
Capacity planning depends on demand forecasting, but user growth for LLM services routinely breaks linear expectations. A jump in model capability, a marketing push, or a social media moment can multiply actual concurrency several times within hours. When the lead time for new supply (procuring GPUs, deploying additional capacity) is far longer than the rate at which demand climbs, the operator has to hold the line with software while hardware expansion catches up in the background.
4.2 Estimating peak concurrency
Sound capacity planning estimates peak demand and reserves headroom before launch:
# Capacity planning sketch: combining throughput and memory constraintsdef estimate_capacity(per_gpu_decode_tps, num_gpu, user_output_tps,avg_kv_bytes_per_user, usable_vram_bytes):# Constraint 1: compute/throughput determines concurrencyconcurrency_by_tput = (per_gpu_decode_tps * num_gpu) / user_output_tps# Constraint 2: memory determines how many active sessions fit in cacheconcurrency_by_vram = usable_vram_bytes / avg_kv_bytes_per_user# Take the smaller of the two as the safe concurrency ceilingreturn min(concurrency_by_tput, concurrency_by_vram)
In practice, the throughput constraint and the memory constraint usually apply at the same time. Taking the smaller of the two as a safe ceiling, then layering a safety factor on top to absorb jitter, is the more robust approach.
5. Engineering Countermeasures
When compute is tight, the engineering objective is to serve as many concurrent users as possible with a fixed set of GPUs. The following techniques can be combined.
5.1 Continuous batching
Conventional batching waits for an entire batch to finish before scheduling the next one, which leaves the GPU idle in between. Continuous batching instead schedules at token-iteration granularity: the moment a request finishes generating and its cache is released, a queued request is slotted in immediately. This greatly improves decode-phase GPU utilization and is the key technique for raising throughput.
5.2 Admission control and rate limiting
As concurrency approaches the ceiling, admission decisions must happen at the entry point rather than letting requests flood in indiscriminately and take the whole service down:
MAX_CONCURRENT = 2000 # Derived from measured throughput and available memoryactive = 0def try_admit(request):global activeif active >= MAX_CONCURRENT:return QUEUE # Queue it, or return "resource busy, please retry later"active += 1return ADMIT
Combined with queue timeouts and priority queues (for example, paying users first), this enables orderly service degradation under resource pressure.
5.3 Elastic scaling
On cloud platforms, inference services can be containerized and auto-scaled based on monitoring alerts such as GPU utilization, queue length, and memory consumption. General cloud capabilities — elastic GPU compute, container platforms, monitoring and alerting, and logging services — can help teams add compute quickly at traffic peaks and reclaim resources in troughs, easing the cost pressure of fixed capacity. One caveat remains: scaling is bounded by GPU supply lead time, so software optimization is always the first line of defense.
5.4 Tiered caching and request queuing
As described earlier, storing KV cache across tiers (GPU memory → host memory → SSD), combined with request queuing and priority scheduling, can raise effective concurrency by an order of magnitude without adding GPUs. The core trade-off is accepting slightly higher resume latency in exchange for more active sessions fitting in GPU memory.
6. The Product Side: “Pausing Sign-Ups” as a Capacity Valve
Back to the original incident. When neither software optimization nor hardware expansion can keep up with demand, the most effective product-side lever is controlling the new-user intake — pausing new sign-ups while protecting the existing user base. The reasoning behind this decision:
- Existing users’ session caches, usage habits, and payment expectations warrant more protection.
- The marginal value of new traffic is lower than the cost of losing existing users to a general quality decline.
- The pause buys a time window for background expansion and avoids a service collapse.
In effect, this elevates capacity management to product strategy: the engineering team raises the concurrency ceiling with software, and the product team uses an admission valve to protect existing capacity. Together they form a complete capacity governance loop.
7. Summary
An LLM service pausing new memberships due to compute pressure looks like a resource shortage on the surface; in substance it is a textbook exercise in capacity planning and scheduling. The technical points boil down to:
- A chat service’s concurrency ceiling is set by GPUs: total decode throughput divided by per-user output rate gives peak concurrency.
- The decode phase is memory-bandwidth-bound, and trading speed for space is a viable scheduling strategy.
- KV cache can be evicted and tiered, and trading cache for concurrency materially raises service capacity.
- Continuous batching and admission control are the key software-side levers for utilization and stability.
- Pausing sign-ups is a legitimate capacity valve, using product policy to protect existing experience and buy time for expansion.
For developers, the real takeaway is that capacity governance for LLM services is not a single-stage problem. It is a systems engineering discipline spanning the inference mechanism, cache scheduling, admission control, elastic scaling, and product policy. Understanding the role and the trade-offs of each stage is what makes it possible to build a high-concurrency inference service that is both stable and economical under compute constraints.
