Memory chips
A processor can calculate in less than a nanosecond, then sit idle waiting for data. Meet the family of memory chips that feed it, and the stacked memory that today's AI depends on.
Every time you open a photo, ask a chatbot a question or scroll a web page, the same tiny drama plays out billions of times a second. A processor needs a number. It asks for it. And then it waits.
Modern processors are astonishingly fast. A single core can do an addition in a fraction of a nanosecond, a billionth of a second. But the data it needs might be sitting in a chip a few centimetres away, or on a drive across the room. In processor time, those are long journeys.
This chapter is about the chips that store data and hand it over, and about the remarkable engineering that tries to keep a hungry processor fed. By the end you will see why, for today's AI, memory often matters more than raw calculating power.
Why there are so many kinds of memory
Wouldn't it be simpler to have one kind of memory that is fast, huge and cheap? It would. Nobody has found one.
Fast memory has to sit very close to the processor and is built from many transistors per bit, so it is small and expensive. Cheap memory packs bits densely and can sit further away, but it is slower. So computers use a memory hierarchya ladder of memory types, each larger, cheaper and slower than the one above it. Data the processor needs right now sits at the top; everything else waits further down.
Software engineers know this pattern well. It is the same idea as an in-process cache, then Redis, then a database, then cold storage in the cloud. Each layer is bigger and cheaper and slower, and the art is keeping the right data in the right layer.
A cook in a kitchen
Imagine a cook preparing dinner in a busy restaurant.
- Registers are the ingredients in the cook's hands.
- SRAM cache is the chopping board right in front of them.
- DRAM is the fridge across the kitchen.
- The SSD is the storeroom at the back of the building.
- The hard disk is a warehouse in another town.
The cook works fast only when the ingredients are near. Every trip further away costs time, and while the cook walks, nothing gets cooked.
fastest, smallest, most expensive per GB
▲
┌─────────────────────────┐
│ Registers (in the core) │ < 1 ns
├─────────────────────────┤
│ SRAM cache (on chip) │ 1–10 ns
├─────────────────────────┤
│ DRAM / HBM (near chip) │ 50–100 ns
├─────────────────────────┤
│ SSD (NAND flash) │ 50–100 µs (about 1,000× slower than DRAM)
├─────────────────────────┤
│ Hard disk │ 5–10 ms (about 100× slower than SSD)
└─────────────────────────┘
▼
slowest, largest, cheapest per GB| Level | Typical size | Time to read | Keeps data without power? |
|---|---|---|---|
| Registers | a few kilobytes | under 1 ns | No |
| SRAM cache | a few MB to a few hundred MB | 1–10 ns | No |
| HBM | 24–36 GB per stack | about 100 ns, huge bandwidth | No |
| DRAM (DDR5) | 8 GB to several TB per server | 50–100 ns | No |
| SSD (NAND flash) | 0.5–60 TB per drive | 50–100 µs | Yes |
| Hard disk | up to about 30 TB per drive | 5–10 ms | Yes |
Go deeper: rough cost per gigabyte (estimates)
Prices move fast, so treat these as orders of magnitude. Registers and SRAM are not sold by the gigabyte; their cost is folded into the processor. In 2024, ordinary DDR5 DRAM cost roughly $3–5 per GB, SSD flash roughly $0.05–0.15 per GB and hard disks roughly $0.015–0.02 per GB. HBM cost several times more per GB than DDR5. In 2026, memory prices rose sharply (see "The 2026 memory squeeze" below): a 64 GB server module that cost a few hundred dollars in 2025 was trading at well over $1,000 by mid-2026.
Latency and bandwidth
Two words appear everywhere in this chapter, and it pays to separate them.
- Latencythe time to get the first piece of data after you ask for it is like the time it takes to drive to the shop.
- Bandwidthhow much data can move each second once it is flowing is like the number of lanes on the road.
A web developer knows the difference: a request can have low latency but tiny throughput, or high latency but stream a big file quickly once it starts. AI chips care most about bandwidth, because they must move enormous blocks of data, again and again, every second.
SRAM: the fastest memory
SRAMstatic random-access memory: memory that stores each bit in a little loop of six transistors, very fast but bulky is the memory inside the processor itself. Each bit lives in a loop of six transistors that hold each other in one of two stable states, like two people leaning against each other back to back. As long as the power stays on, the bit stays put. "Static" means it never needs topping up.
SRAM has one great strength: speed. It is made in the same process as the processor's logic, so it can sit right beside the cores. Every modern processor uses SRAM as its cachea small, fast memory that keeps copies of data the processor is likely to need again soon.
Its weakness is size. Six transistors per bit take a lot of room, which makes SRAM the most expensive memory per bit.
There is a newer twist, too. With each new process node, logic transistors kept shrinking nicely, but SRAM cells shrank much more slowly. At the most advanced nodes, SRAM area has barely shrunk at all. So SRAM is becoming relatively more expensive, just as AI makes it more valuable.
Some AI chips take a bold approach and keep a whole model in SRAM. Cerebras and Groq both do this. It is wonderfully fast, but a large model needs many chips just to hold its weights (chapter 12 explains how).
DRAM: the main memory
DRAMdynamic random-access memory: memory that stores each bit as a tiny charge on a capacitor, cheap and dense but leaky is the main memory of almost every computer. Its design is beautifully simple: each bit uses one transistor and one capacitor.
A capacitora tiny container for electric charge, like a very small bucket for electrons holds the bit. Full means 1; empty means 0. The transistor acts as a gate that opens to let the bit be read or written.

word line (opens the gate)
│
bit ────┤ transistor
line │
═══ capacitor (charge = 1, no charge = 0)
│
groundRobert Dennard at IBM came up with this one-transistor cell in 1966–1967, and his patent was granted in 1968. Almost sixty years later, the basic idea still sits inside nearly every computer, phone and server on Earth. Few inventions have lasted so well.
Why DRAM needs refresh
The capacitor is not perfect. Its charge slowly leaks away, in a matter of milliseconds. So the memory chip constantly reads every bit and writes it back again, many times a second. This is called refreshreading each bit of DRAM and writing it back before its charge leaks away, and it is what "dynamic" means.
In software terms, refresh is a bit like a cache entry with a short time-to-live that a background job keeps renewing. If the job ever stopped, the data would quietly vanish.
Why DRAM is hard to make
DRAM is cheap per bit because each bit needs only two parts. But one of those parts is fiendishly hard to build.
The capacitor has to hold enough charge to be read reliably, yet it must fit into a space only a few tens of nanometres across. The solution is to build it upwards, as a tall, thin tube, like a skyscraper only a few windows wide.
Those tubes are many times taller than they are wide. A tiny error in the etch can make one lean over and touch its neighbour, and the bit is lost. Etching billions of these perfectly, across a whole wafer, is one of the quiet wonders of manufacturing. Chapter 7 describes the etching machines.
The DRAM family
All these types use the same basic cell. What changes is the interface and the package around it.
| Type | Where it is used | What makes it special |
|---|---|---|
| DDR5 | PCs and servers | The standard memory, on removable modules. |
| RDIMM with ECC | Servers | Modules with an extra chip to steady the signals, plus error-correcting code that finds and fixes flipped bits. |
| LPDDR5X | Phones, laptops, Apple Macs, NVIDIA Grace CPU | Low power; usually soldered right next to the processor. |
| GDDR7 | Graphics cards, e.g. NVIDIA RTX PRO 6000 | High bandwidth on an ordinary circuit board; the RTX PRO 6000 carries 96 GB at about 1.8 TB/s. |
| HBM | AI data-centre GPUs | The highest bandwidth: stacked dies right beside the processor. |
ECCerror-correcting code: a few extra bits stored with the data so the memory can detect and fix single-bit errors matters more than it sounds. A server that runs for months will see the occasional bit flipped by a stray cosmic particle or electrical noise. ECC catches and fixes those flips before they become a crash or a wrong answer.

HBM: the memory AI depends on
What do you do when a processor needs far more bandwidth than any circuit board can carry? You stop running the wires across the board. You stack the memory into a tower and set it right beside the processor.
That is HBMhigh-bandwidth memory: stacks of thin DRAM dies, wired straight through and placed millimetres from the processor. It is ordinary DRAM inside, but built in a radically different way.

How HBM is built
- The memory maker produces DRAM dies and grinds them very thin.
- It etches thousands of tiny vertical holes through each die and fills them with copper. These are TSVsthrough-silicon vias: vertical wires that pass straight through a silicon die to connect the layers above and below.
- It stacks 8, 12 or 16 dies on top of each other, and the TSVs join every layer.
- At the bottom sits a base diethe bottom chip of an HBM stack, which controls the stack and talks to the processor.
- A packaging company places the stacks right beside the processor on a sliver of silicon called an interposer (chapter 11).
HBM stack (side view)
┌───────────────────────┐ DRAM die 12
├───────────────────────┤ DRAM die 11
├───────────────────────┤ ...
├───────────────────────┤ DRAM die 1
├───────────────────────┤ base die (control)
└──┬──┬──┬──┬──┬──┬──┬──┘
│ │ │ │ │ │ │ ← thousands of TSVs and connectionsWhy HBM is so fast
The secret is width. A normal DDR5 module talks to the processor over a 64-bit path. One HBM3E stack uses a 1,024-bit path, and the HBM4 standard, published by JEDEC in April 2025, doubles that to 2,048 bits. It is the difference between a country lane and a motorway with a thousand lanes. And the stack sits only millimetres from the processor, so every signal travels a short way.
| Item | Approximate value |
|---|---|
| Bandwidth of one HBM3E stack | about 1.2 TB/s |
| Bandwidth of one HBM4 stack (JEDEC standard) | up to about 2 TB/s |
| NVIDIA B200 GPU | 8 stacks, 192 GB, about 8 TB/s |
| One DDR5 module | about 0.05 TB/s |
Why HBM is expensive
HBM is a marvel, but it is a costly one.
- Micron has said that HBM3E uses roughly three times the wafer supply of DDR5 to make the same number of bits. The dies are bigger, the TSVs take room, and stacking loses some yield.
- If one die in a stack of twelve fails, the whole stack can be lost.
- Stacking needs special bonding machines and extremely precise packaging.
SK hynix leads the HBM market, with Samsung and Micron close behind. Each new HBM generation is a race among just these three.
NAND flash: memory that remembers without power
Everything so far forgets its data when the power goes off. Your phone, though, remembers your photos for years. That is the job of NAND flashmemory that stores bits as electrons trapped in each cell, so it keeps data with the power off, the memory inside SSDs, phones and USB sticks.
How it holds a bit
Each flash cell is a transistor with an extra layer that can trap electric charge. A high voltage pushes electrons into that layer, and there they stay, for years, with no power at all. The amount of trapped charge tells the chip what the cell holds.
More than one bit per cell
A cell can hold different amounts of charge, and each level can stand for a different value. More levels mean more bits per cell.
| Type | Bits per cell | Charge levels | Speed and life |
|---|---|---|---|
| SLC | 1 | 2 | Fastest, longest life, most expensive per bit |
| MLC | 2 | 4 | |
| TLC | 3 | 8 | The most common type today |
| QLC | 4 | 16 | Slowest, shortest life, cheapest per bit |
There is a catch. With sixteen levels squeezed into the same range, each level sits very close to its neighbours. Reading becomes slower, and errors become more frequent. It is like reading a fuel gauge marked in sixteenths rather than halves.
3D NAND: a building with hundreds of floors
Until about 2013, flash cells sat in a single flat layer. Then they could not shrink much further. So the industry did what cities do when land runs out: it built upwards.
Today's most advanced 3D NANDflash memory built as many layers of cells stacked vertically, like floors in a tower has more than 300 layers. To make it, the fab etches holes straight down through every layer at once, holes many times deeper than they are wide. It is one of the most extreme etching jobs in all of manufacturing.
The SSD controller
An SSD is more than flash chips. It also has a controllerthe small processor in an SSD that spreads writes evenly, fixes errors and manages the flash. Flash cells wear out after a limited number of writes, so the controller spreads writes across all the cells, a job called wear levelling. It also corrects errors and hides all of this behind a simple interface. Phison, Silicon Motion and Marvell make controllers; Samsung designs its own.

NOR flash
NOR flasha type of flash memory that is fast to read but much less dense, used to hold start-up code is a cousin of NAND. It is quicker to read but holds far less per square millimetre. Small devices use it to store the program they run when they start up. Winbond and Macronix are large makers.
New kinds of memory
Researchers have spent decades looking for a "universal memory" that is fast, dense and keeps data without power. Several promising candidates are already in use in niches.
| Type | The idea | Status (2026) |
|---|---|---|
| MRAM | Stores a bit as the direction of a tiny magnet. Fast, and keeps data without power. | Used in some embedded chips; a small but growing market. |
| ReRAM | Stores a bit as a change in a material's electrical resistance. | Used in some embedded chips. |
| CXL memory | Not a new cell but a new connection standard. It lets a server add DRAM through its expansion slots, or share DRAM between servers. | Growing use in data centres. |
None of these has replaced DRAM or NAND yet. But they are a lovely reminder that the memory hierarchy is still being invented.
The memory wall and AI
A large language model keeps its weightsthe billions of learned numbers that make up a neural network in memory. To write each tokena word or piece of a word; language models write one token at a time, the processor must read all the active weights once (chapter 14 explains why).
That means the speed of memory, not the speed of arithmetic, often sets the speed of the answer. Engineers call this the memory wallthe gap between how fast a processor can calculate and how fast memory can feed it data.
A worked example makes it concrete. Take a model with 16 billion active weights, stored at 4 bits each: about 8 GB to read for every token.
- A GPU with 8 TB/s of memory bandwidth can read 8 GB about 1,000 times a second, in theory.
- A GPU with 1 TB/s can do it only about 125 times a second.
The arithmetic units could be identical; the memory alone makes an eightfold difference. (Chapter 15 shows how real systems get around this with batching.) This is why AI companies prize HBM so highly, and why the brain, which stores its "weights" right where it uses them, is such an interesting comparison (see The 20-watt brain in the companion book).
The 2026 memory squeeze
What happens when the whole AI industry wants the same three companies' most profitable product at once?
In 2025 and 2026 we found out. The three big DRAM makers shifted more and more of their wafers to HBM, which earns more per wafer. Estimates suggest HBM went from well under a tenth of DRAM wafer capacity in 2024 to roughly a fifth by 2026, with a Samsung executive saying it could approach 30% in 2027. And because HBM needs about three times the wafer area per bit, every wafer moved to HBM removed a lot of ordinary memory from the market.
| What happened | Reported figure |
|---|---|
| Conventional DRAM contract prices, Q4 2025 | up about 45–50% (TrendForce) |
| Conventional DRAM contract prices, Q1 2026 | up about 93–98% (TrendForce) |
| Forecast for Q2 2026 | up about 58–63% (TrendForce) |
| DRAM industry revenue, Q1 2026 | about $97 billion, up 81% in one quarter |
| A 64 GB DDR5 server module (market index) | about $720 in January 2026, about $1,630 in September 2026 |
Phones, PCs and ordinary servers suddenly competed with AI for memory, and lost on price. New fabs take two to three years to build, so most analysts expect supply to stay tight until about 2027–2028.
It is a striking illustration of the commodity cycle from chapter 9, running at full speed. It is also a sign of how much value the world now places on memory bandwidth.
Why this is hard
- The capacitor problem. DRAM capacitors must be very tall and very thin, and the etch must be nearly perfect across billions of cells.
- Leaks. Smaller cells leak faster, so every generation needs new materials to hold the charge.
- Stacking. HBM stacks of 12 to 16 thin dies must line up within micrometres, and one bad die can ruin the whole stack.
- The commodity trap. Memory from different makers is nearly interchangeable, so prices follow supply and demand, and makers can lose billions in a bust.
- Few machine suppliers. The deep etching that DRAM and 3D NAND need comes mostly from Lam Research, Tokyo Electron and Applied Materials.
Who makes memory
| Company | Headquarters | Products | Notes |
|---|---|---|---|
| Samsung Electronics | South Korea | DRAM, HBM, NAND, SSDs | Largest DRAM maker by revenue (about 38.5% in Q1 2026, TrendForce). |
| SK hynix | South Korea | DRAM, HBM, NAND (with Solidigm) | The HBM leader; about 28.8% of DRAM revenue in Q1 2026. |
| Micron | USA | DRAM, HBM, NAND | About 22.4% of DRAM revenue in Q1 2026. |
| CXMT | China | DRAM | The fastest-growing DRAM maker of recent years. |
| Nanya | Taiwan | DRAM | A smaller DRAM maker. |
| Winbond | Taiwan | Specialty DRAM, NOR flash | Small and specialty memory. |
| Kioxia | Japan | NAND | Formerly part of Toshiba, where flash was invented. |
| Sandisk | USA | NAND, SSDs | Separated from Western Digital in 2025; shares fabs with Kioxia. |
| Solidigm | USA (owned by SK hynix) | NAND, SSDs | Formerly Intel's NAND business. |
| YMTC | China | NAND | China's 3D NAND maker; limited by export controls. |
| Phison, Silicon Motion, Marvell | Taiwan, Taiwan, USA | SSD controllers | Make the chip that runs an SSD. |
A short history
- 1966–1967: Robert Dennard at IBM invents the one-transistor DRAM cell; the patent is granted in 1968.
- 1970: Intel sells the 1103, the first commercially successful DRAM chip, with 1 kilobit. DRAM begins to replace magnetic core memory.
- 1980s: Fujio Masuoka and colleagues at Toshiba invent flash memory: NOR first (presented in 1984), then NAND (1987).
- Mid-1980s: Japanese companies make most of the world's DRAM.
- 1985: Intel leaves the DRAM business.
- 1983–1992: Samsung starts making DRAM in 1983 and becomes the world's largest DRAM maker in 1992.
- 2009: Qimonda goes bankrupt in a memory price crash.
- 2012–2013: Elpida goes bankrupt and Micron buys it. Three companies now make most of the world's DRAM.
- 2013: SK hynix makes the first HBM, working with AMD, and JEDEC publishes the first HBM standard.
- 2015–2016: The first GPUs with HBM ship: AMD Fiji in 2015, NVIDIA P100 in 2016.
- 2025: JEDEC publishes the HBM4 standard, with a 2,048-bit interface.
- 2023–2026: AI demand makes HBM the most important memory product, and ordinary memory prices soar.
Open questions
Memory is having its moment, and some of the most interesting questions in computing now live here.
- How tall can an HBM stack go? Sixteen dies is already astonishing. Will hybrid bonding allow twenty or more, and can yields keep up?
- Will computing move into memory? If moving data is the expensive part, why not calculate inside the memory chip? Several companies are trying, from processing-in-memory DRAM to analog chips. Which ideas will reach large scale?
- Can SRAM keep shrinking? If SRAM cells stop getting smaller, what will replace on-chip cache at the most advanced nodes?
- Will a universal memory ever arrive? MRAM, ReRAM and others each solve part of the puzzle. Could one of them eventually blur the line between memory and storage?
- How will the memory cycle end this time? New fabs are coming. Will AI demand absorb them, or will memory see another bust around 2028?
What to remember
- Computers use a memory hierarchy: small, fast, expensive memory near the processor, and large, slow, cheap memory further away.
- SRAM uses six transistors per bit and is fast but bulky; DRAM uses one transistor and one leaky capacitor and needs constant refresh; flash traps electrons and keeps data without power.
- HBM stacks 8–16 thin DRAM dies with vertical wires beside the processor, giving the huge bandwidth AI chips need, at about three times the wafer area per bit.
- For AI, memory bandwidth often sets the speed of each answer: this is the memory wall.
- In 2025–2026, the shift to HBM made ordinary DRAM scarce and sent its contract prices up several-fold within a year.
Sources
- JEDEC / Business Wire (16 April 2025). "JEDEC and industry leaders collaborate to release JESD270-4 HBM4 standard": 2,048-bit interface, up to 8 Gb/s per pin, up to 2 TB/s per stack; 4- to 16-high stacks. https://www.businesswire.com/news/home/20250416843598/en
- NVIDIA DGX B200 product page (B200: 8 HBM3E stacks, 192 GB, about 8 TB/s per GPU in NVIDIA's launch figures). https://www.nvidia.com/en-us/data-center/dgx-b200/
- NVIDIA RTX PRO 6000 Blackwell product page: 96 GB GDDR7, about 1.8 TB/s, 600 W. https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-6000/
- Micron (March 2024 earnings call), as reported by AnandTech: "HBM3E consumes approximately three times the wafer supply as DDR5 to produce a given number of bits in the same technology node." https://www.anandtech.com/show/21319
- TrendForce (1 June 2026). "Rapid contract price surge drives 1Q26 DRAM industry up 81% QoQ": revenue $97 billion; conventional DRAM +93–98% in 1Q26; +58–63% forecast for 2Q26; vendor shares. https://www.trendforce.com/presscenter/news/20260601-13070.html
- TrendForce via iConnect007 (early 2026): conventional DRAM contract prices +45–50% in 4Q25. https://iconnect007.com/article/148959/price-rally-drives-4q25-dram-revenue-up-294-samsung-regains-no-1-market-share/148956/aep
- ChinaFlashMarket DDR5 RDIMM 64 GB price index: about $720 (January 2026), about $1,380 (June 2026), about $1,630 (September 2026). https://www.chinaflashmarket.com/pricecenter/chart/ems/100263
- ChainCatcher, citing Financial Associated Press (September 2026): a Samsung executive expects HBM to reach nearly 30% of DRAM wafer capacity next year, from about 20%. https://www.chaincatcher.com/en/article/2293166 (secondary report; the 2024 and 2026 HBM wafer shares in this chapter are estimates).
- Dennard, R. H. US Patent 3,387,286, "Field-effect transistor memory," granted 4 June 1968. https://patents.google.com/patent/US3387286A
- IBM, "DRAM: the invention of on-demand data." https://www.ibm.com/history/dram
- Computer History Museum, The Silicon Engine timeline (1970: Intel 1103 DRAM). https://www.computerhistory.org/siliconengine/
- Masuoka, F. et al. (1984). "A new flash E2PROM cell using triple polysilicon technology." IEDM 1984; and (1987) "New ultra high density EPROM and flash EEPROM with NAND structure cell," IEDM 1987. https://doi.org/10.1109/IEDM.1984.190752
- SK hynix newsroom, history of HBM (first HBM in 2013, with AMD). https://news.skhynix.com/
- Google Cloud documentation, TPU7x (Ironwood), for comparison: 192 GiB HBM, about 7.37 TB/s. https://docs.cloud.google.com/tpu/docs/tpu7x
Estimates in this chapter: cost per gigabyte for each memory level; HBM's share of DRAM wafers in 2024 and 2026; the expected end of the shortage around 2027–2028; and the token-rate example (a simple bandwidth-only calculation that ignores batching and caching).
Previous: 9. Yield and the price of a chip · Next: 11. Packaging and test