The memory wall now sizes the hardware
Calculate the computational power limits of LLM inference. Discover why the memory wall dictates hardware sizing and how to bypass DRAM bandwidth limits.
In this article8
- Compute versus memory: The limits of LLM scaling
- DRAM bandwidth saturation in auto-regressive decoding
- Evaluating arithmetic intensity for capacity planning
- KV cache expansion and sequence length constraints
- Hardware responses: Bandwidth limits on the H200
- Sizing on-demand GPU VMs for model deployment
- Frequently asked questions
- Sources

Compute versus memory: The limits of LLM scaling
Hardware sizing for frontier large language models has historically focused on raw floating-point operations per second (FLOPS). However, empirical analysis shows that computational capacity is no longer the sole binding constraint in production AI systems. While pre-training budgets are approaching fundamental data ceilings, serving infrastructure faces an entirely different hardware barrier.
On the training side, scaling laws established that capability gains scale predictably with compute and dataset volume. Yet the available stock of high-quality human text is finite. Research from Epoch AI estimates the effective stock of quality- and repetition-adjusted human-generated public text for training at approximately 300 trillion tokens[1]. Under compute-optimal scaling, this stock will be fully utilized between 2026 and 2032, forcing frontier model developers to transition toward synthetic data generation or multi-modal token streams.
On the hardware execution side, a widening divergence between compute capability and memory subsystem performance governs real-world efficiency. According to historical semiconductor benchmarks analyzed by Gholami et al., peak server hardware FLOPS has scaled at a rate of 3.0x every two years over the past two decades[2]. In contrast, dynamic random-access memory (DRAM) bandwidth has grown at only 1.6x every two years, while interconnect bandwidth has scaled at 1.4x every two years[3].
| Subsystem Metric | Historical Scaling Rate (per 2 Years) | Primary Architecture Impact |
|---|---|---|
| Peak Server Compute (FLOPS) | 3.0x | Drives raw training throughput for dense matrix multiplication |
| DRAM / HBM Bandwidth | 1.6x | Restricts memory transfer speeds during token generation |
| Interconnect Bandwidth (Scale-Up/Out) | 1.4x | Constrains multi-GPU tensor and pipeline parallelism synchronization |
This asymmetry shifts the operational bottleneck. While training dense parameters remains heavily compute-bound, production serving is increasingly dominated by the memory subsystem. Infrastructure planners evaluating GPU inference vs training workloads must account for this decoupling to prevent massive over-provisioning of unutilized compute silicon.
DRAM bandwidth saturation in auto-regressive decoding
Serving transformer architectures divides cleanly into two sequential phases: the prefill phase and the decode phase. During prefill, the model processes input prompt tokens concurrently, achieving high operational density. In contrast, the auto-regressive decode phase generates tokens sequentially, where every newly generated token requires fetching all model parameters and cached attention states from device memory.
Because each step in the decode phase operates on a single sequence token per forward pass, operational throughput is governed directly by memory bandwidth rather than Tensor Core execution capacity. When serving requests across large batches, infrastructure teams frequently assume that aggregate compute demand transitions the workload into a compute-bound regime. Empirical GPU-level profiling disproves this assumption.
Profiling data published by Recasens et al. at the Barcelona Supercomputing Center and IBM Research demonstrates that large-batch inference remains fundamentally memory-bound[4]. Across tested model configurations on Hopper architectures, over 50 percent of attention kernel cycles stall waiting for data access transfers from high-bandwidth memory (HBM)[4].
- Memory stalls: Over 50% of execution cycles in attention kernels are idle compute cycles waiting on DRAM transfers[4].
- Throughput plateau: Batching increases throughput only up to a certain batch size, after which gains plateau because large-batch inference remains memory-bound with DRAM bandwidth saturation as the primary bottleneck[4].
- Compute underutilization: Pushing batch sizes past the saturation threshold consumes disproportionate memory capacity while delivering sub-linear throughput gains and degrading inter-token latency.
Consequently, increasing batch size without matching memory bandwidth results in idle silicon. The compute units spend the majority of clock cycles waiting on memory bus transactions, capping effective tokens-per-second long before arithmetic capacity is reached.
Evaluating arithmetic intensity for capacity planning
To size hardware infrastructure accurately, engineering teams use the roofline evaluation model, which defines operational boundaries via arithmetic intensity. Arithmetic intensity is expressed as the ratio of floating-point operations performed per byte of data transferred from memory (FLOPs/byte). An accelerator reaches peak operational efficiency only when the workload's arithmetic intensity matches or exceeds the hardware's machine balance ratio.
During the prefill phase, parallel token processing delivers an arithmetic intensity well above 100 FLOPs/byte, fully saturating modern Tensor Cores. During auto-regressive token generation, however, arithmetic intensity drops significantly. For a batch size of 1, generating a single token requires transferring 2 bytes of weight data per parameter (under 16-bit precision) for only 2 FLOPs of computation, yielding an arithmetic intensity of exactly 1 FLOP/byte.
This dynamic directly affects datacenter economics. In modern accelerator systems, high-bandwidth memory has become the primary cost driver. Component cost breakdowns reveal that high-bandwidth memory accounts for over 50 percent of the total semiconductor bill of materials in high-end accelerator nodes ai server component cost breakdown memory.
- Calculate target workload arithmetic intensity: Determine the ratio of prompt tokens (prefill) to generated tokens (decode) across expected traffic.
- Model the memory bandwidth ceiling: Multiply available memory bandwidth (bytes/sec) by workload arithmetic intensity to identify the real achievable TFLOPS.
- Avoid peak-FLOPS sizing errors: Sizing cluster capacity based on nominal compute specifications rather than memory bandwidth results in hardware utilization rates below 30%.
Capacity planners who evaluate infrastructure solely through nominal FLOPS overpay for compute cores that remain idle during inference generation. Effective planning models DRAM bandwidth saturation as the primary capacity threshold.
KV cache expansion and sequence length constraints
Beyond static model parameter weights, dynamic memory allocation during inference is dominated by the Key-Value (KV) cache. In transformer attention mechanisms, previously computed key and value states are stored in accelerator memory to avoid redundant recomputation during subsequent decoding steps.
The memory footprint of the KV cache grows linearly with batch size and context sequence length, while cross-attention interactions scale quadratically in total operational complexity. The exact byte allocation required per sequence is governed by layer count, number of key-value attention heads, hidden dimension size, and numerical precision format.
| Model Parameter Scale | Attention Architecture | KV Cache per 1k Context (FP16) | Concurrency on one 80 GB GPU (4k context, FP16 weights) |
|---|---|---|---|
| 8B (Llama 3, 32 layers, 8 KV heads) | Grouped-Query Attention (GQA) | 0.134 GB | ~119 Requests |
| 70B (Llama 3, 80 layers, 8 KV heads) | Grouped-Query Attention (GQA) | 0.336 GB | Does not fit (140 GB weights) |
| 405B (Llama 3.1, 126 layers, 8 KV heads) | Grouped-Query Attention (GQA) | 0.528 GB | Partitioned Multi-Node |
As context windows expand to 32k, 128k, or 1M tokens, the KV cache rapidly exhausts available high-bandwidth memory. When GPU memory is occupied by attention cache allocations, the maximum concurrent batch size must be curtailed. This forces memory management frameworks to swap states to host system DRAM or drop batch concurrency, directly lowering serving throughput.
In multi-tenant or enterprise agent deployments with long system prompts and extended conversation histories, KV cache allocation frequently accounts for over 60 percent of total accelerator VRAM, exacerbating the memory wall and capping GPU utilization.
Hardware responses: Bandwidth limits on the H200
Silicon designers have responded to the memory bottleneck by prioritizing memory capacity and bandwidth over raw compute scaling. The transition from the NVIDIA H100 to the NVIDIA H200 serves as the clearest benchmark for this architectural evolution.
According to official hardware specifications from NVIDIA, the H200 SXM maintains the identical 4 petaFLOPS of FP8 Tensor Core compute as its predecessor while significantly upgrading its memory subsystem. It integrates 141 GB of HBM3e memory delivering 4.8 TB/s of aggregate memory bandwidth, nearly double the capacity of the H100 with 1.4x more memory bandwidth.
- Capacity expansion: 141 GB of HBM3e is nearly double the capacity of the H100, enabling larger models to run on single nodes without pipeline partitioning[5].
- Bandwidth throughput: 4.8 TB/s represents 1.4x more memory bandwidth than the H100, directly reducing memory stall cycles during the auto-regressive decode phase[5].
- Inference gains: NVIDIA states that the H200 boosts inference speed by up to 2x compared to H100 GPUs when handling LLMs like Llama2, within the same power profile as the H100[5].
By expanding both capacity and bandwidth, accelerators like the H200 alleviate the DRAM saturation knee-point. This enables higher concurrent batch sizes and larger KV cache retention, shifting effective hardware utilization closer to the compute ceiling.
Sizing on-demand GPU VMs for model deployment
Translating memory-wall mechanics into procurement criteria requires engineering teams to select virtual machine (VM) configurations based on interconnect topology and memory bandwidth rather than aggregate FLOP counts. For distributed model-training and large-scale inference deployments, scale-up interconnect throughput between GPUs determines whether partitioned attention kernels execute efficiently.
When models exceed single-chip memory limits, tensor parallelism divides layers across multiple accelerators. Fast inter-GPU communication via NVLink fabrics (providing 900 GB/s of bidirectional bandwidth per GPU on Hopper systems) is required to prevent node interconnects from replacing DRAM as the primary execution bottleneck[6], as detailed in analyses of how GPUs communicate inside clusters.
- Assess parameter memory footprints: Allocate 2 bytes per parameter for 16-bit weights or 1 byte per parameter for FP8 quantized checkpoints.
- Model peak dynamic KV cache requirements: Project concurrent active requests, context sequence length, and attention head architecture.
- Select interconnect configurations: Deploy 1-GPU to 8-GPU VMs linked via high-speed NVLink switches to eliminate tensor parallel synchronization stalls.
Frequently asked questions
What are the computational power limits of an LLM?
The limits depend on the phase of deployment. Training is constrained by available raw compute and the global stock of training data (estimated at 300 trillion tokens). Inference, however, is limited by the memory wall, as data transfer speeds cannot keep up with processor speeds.
How does the memory wall affect LLM inference?
During auto-regressive text generation, the GPU must constantly fetch model weights and KV cache data from memory. This process is so bandwidth-intensive that over 50% of attention kernel cycles stall waiting for data, underutilizing the GPU's computational capacity.
Why does batching not solve the LLM memory bottleneck?
While batching increases throughput up to a point, it eventually saturates the DRAM bandwidth and exhausts available video RAM due to the expanding KV cache. Once bandwidth is saturated, adding more requests only degrades latency without increasing efficiency.
What is arithmetic intensity in AI models?
Arithmetic intensity measures the number of floating-point operations performed per byte of memory accessed. Auto-regressive LLM decoding has low arithmetic intensity, meaning it requires high memory bandwidth rather than high raw computing power to run efficiently.
How does the NVIDIA H200 address the LLM memory wall?
The H200 is designed to mitigate the memory bandwidth bottleneck by providing 141 GB of memory and significantly faster data transfer rates than its predecessors. This allows higher utilization of the compute cores during bandwidth-heavy inference tasks.
Sources
Rankings and scores on Optinest cannot be bought — no commercial relationship changes how a provider is assessed. How we score
Related reading
All Accelerators →Memory Bandwidth Limitations: Sizing LLM GPU Throughput
Discover how memory bandwidth limitations dictate LLM GPU throughput. Learn to calculate the memory wall and size hardware for actual token generation rates.

What a 70B model really costs in VRAM
Discover how to calculate GPU memory usage for LLM inference, including weight footprints, quantization formats, and Key-Value cache sizing.

Best processor for inference
Evaluate the best processors for AI inference. Compare CPU versus GPU performance, memory bandwidth limits, and datacenter hardware requirements for models.
