Why LLM Services Run Out of Compute: Inference Capacity Bottlenecks at Peak Concurrency

    This article explains why large language model services can run short of compute during demand spikes. It shows how GPU memory bandwidth, the prefill and decode stages, and KV Cache determine how many concurrent users one service can handle, and why chatbot workloads have different capacity characteristics. It also covers common capacity planning and optimization practices for teams that self-host or use cloud-based inference.

    1. The Phenomenon: A Typical Capacity Problem

    After a model upgrade, the user base of one AI assistant grew sharply. The operator announced that compute resources were tight, paused sales of new memberships, and said existing users would keep normal access. Many users first assumed this was a scarcity marketing tactic. From an engineering standpoint, it looks more like a typical inference capacity crisis. Demand grew faster than GPU supply, so the provider limited new sign-ups to protect the experience of existing users.

    Understanding this kind of event starts with one core question: How many users can an online LLM service serve at the same time? That number is determined almost entirely by inference compute resources.

    2. Why GPUs Set the Concurrency Ceiling

    2.1 The Two Stages of Inference

    LLM inference has two stages: prefill and decode.

    • Prefill stage: The model reads the user’s full input in one pass. This stage is compute-intensive, so GPU compute units are heavily used.
    • Decode stage: The model generates tokens one at a time. Each step reads all model weights and the KV Cache, so the bottleneck is mainly memory bandwidth rather than compute.

    During decode, the GPU’s compute units sit largely idle while data movement keeps the hardware busy. This explains a key point: in chatbot scenarios, GPUs typically run at full load while being limited by memory bandwidth.

    2.2 How Many Tokens One GPU Can Produce

    In simple terms, the decoding speed of a single request is limited by:

    1. Time per decoding step ≈ (model weight size + KV Cache size) / effective memory bandwidth

    For example, if the model weights and cache together require moving 20 GB of data and the bandwidth is 3 TB/s, the theoretical maximum is about 150 tokens per second. Once the throughput ceiling is set, the bandwidth share each user consumes is also fixed. Maximum concurrent users ≈ total bandwidth supply ÷ bandwidth needed for one user’s acceptable experience.

    2.3 KV Cache: The Session Ledger in GPU Memory

    Each active session keeps a KV Cache in GPU memory. Its size grows with context length and batch size:

    1. KV Cache ≈ 2 × layers × heads × head dimension × sequence length × batch size × bytes per element

    This cost grows quickly as long-context models become common. Long-text features are therefore expensive to serve, because they consume both compute (prefill) and memory (cache).

    3. Chat Workloads Can Discard the KV Cache

    This point is an important engineering insight: a chatbot’s KV Cache can be discarded. This differs fundamentally from many traditional online services.

    • Most chat sessions are short and one-off, such as “What’s the weather tomorrow?” or “Help me write a weekly report.”
    • Even long conversations are rarely revised repeatedly over the same context within a single day.
    • Providers can therefore use aggressive cache eviction. They release GPU memory once a session goes idle. When the user returns, the system either restores the cache from SSD or recomputes the history.

    This “trade compute for memory” strategy greatly increases the peak number of users a single GPU can serve. Put another way, the concurrency elasticity of chat workloads largely comes from tolerating the cost of repeated computation.

    4. Why Compute Shortages Hit Suddenly

    Taken together, a compute shortage at a model provider usually results from several factors:

    1. Bursty demand: A model capability upgrade spreads by word of mouth. New and returning users arrive in a short window, pushing peak concurrency far above normal levels.
    2. Long context raises per-request cost: Longer contexts increase prefill compute and KV Cache usage, so the same GPUs serve fewer users.
    3. Rigid supply: Procuring, delivering, deploying, and debugging high-end GPUs takes months. Capacity cannot scale as quickly as ordinary servers.
    4. Commitments to paying users: Paid users should not be downgraded, so the cut falls on new capacity. This is the technical reason behind pausing new memberships to protect existing users.

    5. Common Capacity Planning and Optimization Practices

    For companies that self-host or use cloud inference services, consider the following approaches.

    1. Model peak capacity
    Fit a curve from load test data that relates concurrency, time to first token, and throughput. Work backward from your P99 latency target to find the maximum safe concurrency, and reserve 20% to 30% headroom for traffic spikes.

    2. Reduce per-request cost with inference optimizations

    • Quantization (such as INT8 or FP8) shrinks weight and cache size, which directly improves memory bandwidth efficiency.
    • Paged cache management, such as PagedAttention, reduces memory fragmentation and increases batching density.
    • Prefix caching reuses shared prefixes such as system prompts, avoiding repeated prefill.

    3. Elastic architecture
    Use a container platform to scale inference instances with load, and use message queues to smooth peaks. Monitoring and alerts help detect capacity pressure early. On public clouds, GPU resource pools can be combined with object storage to tier KV Cache across GPU memory, host memory, and SSD.

    4. Rate limiting and tiered service to protect capacity
    Tiered SLAs, queuing, and subscription-based compute quotas are common industry responses to limited capacity. Pausing new user sales is the most conservative option in this group.

    6. Conclusion

    A compute shortage with paused sales may look like an operational event, but it reflects the economics of LLM inference. GPU bandwidth sets the throughput ceiling, the KV Cache determines the cost per user, and demand can rise overnight. Understanding this capacity logic helps whether you are evaluating the stability of a third-party service or planning your own inference infrastructure. Good user experience depends on compute, memory, and scheduling working together. Model size is only one part of it.