L1 Beginner · Module 2: Why GPUs: hardware first principles
2.6The memory wall and HBM
Each GPU generation adds arithmetic faster than it adds memory bandwidth. That widening gap, the memory wall, is why HBM exists, why it is the most expensive part of an accelerator, and why LLM decode is limited by memory.
By the end you will be able to
- ✓Describe the memory wall with numbers from recent GPU generations
- ✓Explain how HBM achieves its bandwidth, and what it costs
- ✓Compare HBM with GDDR and say where each is used
- ✓Connect the memory wall to decode speed and to the roofline ridge point
Arithmetic is easy to add to a chip: more lanes, wider tensor cores, lower precision. Bandwidth is hard to add, because every byte has to cross the edge of the chip through physical wires. Over time, the two have drifted apart.
The gap, in numbers
| GPU | Year | Dense FP16/BF16 tensor | Memory bandwidth | FLOP per byte (ridge) |
|---|---|---|---|---|
| V100 SXM2 | 2017 | 125 TFLOP/s | 0.90 TB/s | 139 |
| A100 SXM 80GB | 2020 | 312 TFLOP/s | 2.04 TB/s | 153 |
| H100 SXM | 2022 | 989 TFLOP/s | 3.35 TB/s | 295 |
| H200 SXM | 2024 | 989 TFLOP/s | 4.8 TB/s | 206 |
| B200 | 2024 | ~2,250 TFLOP/s | ~8 TB/s | ~281 |
From V100 to B200, tensor throughput grew about 18× while bandwidth grew about 9×. The ridge point, the arithmetic intensity a kernel needs before compute becomes the limit (3.3), has roughly doubled. A kernel that was balanced on a V100 is memory-bound on a B200. This growing imbalance is called the memory wall.
How HBM gets its bandwidth
Bandwidth is roughly bus width × transfer rate per wire. Ordinary DRAM and GDDR sit on a circuit board, where each wire is long, so the bus is narrow (64 bits per DDR channel, 384 bits on an RTX 4090) and the wires have to run very fast.
High Bandwidth Memory goes wide instead:
- Several DRAM dies are stacked vertically and connected by thousands of through-silicon vias (TSVs).
- Each stack has a 1,024-bit interface, 16 times wider than a DDR channel.
- The stacks sit on a silicon interposer right beside the GPU die, millimetres away, so all those wires are short and dense.
An H100 SXM uses five active HBM3 stacks: a 5,120-bit bus delivering 3.35 TB/s from 80 GB. An RTX 4090’s GDDR6X reaches about 1 TB/s from 24 GB with a 384-bit bus running much faster per pin.
| GDDR6X (RTX 4090) | HBM3 (H100 SXM) | |
|---|---|---|
| Placement | separate chips on the board | stacked beside the die, on an interposer |
| Bus width | 384 bits | 5,120 bits |
| Bandwidth | ~1.0 TB/s | 3.35 TB/s |
| Capacity | 24 GB | 80 GB |
| Cost and supply | cheap, plentiful | expensive, supply-limited packaging |
The speed limit, as a formula
If a decode step has to read the weights bytes and the batch’s KV cache bytes from HBM with bandwidth , then no kernel can make the step faster than
For Llama-3-8B in BF16 on an H100 at short context: , so at most about 210 tokens/s for a single stream, however clever the kernels are. The ways around it are all about bytes: read fewer (quantization), share each read across more requests (batching), or spread the bytes over more GPUs’ worth of bandwidth (tensor parallelism).
Sources
Check your understanding
0 / 4 answered1.What is the memory wall?
2.How does HBM achieve high bandwidth?
3.An H200 has the same peak compute as an H100 but 4.8 TB/s instead of 3.35 TB/s. What happens to batch-1 decode speed?
4.Llama-3-8B in BF16 is 16 GB. What is the best possible single-stream decode rate on a 3.35 TB/s GPU?