Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Memory Technologies

Overview

Understanding the physical memory technologies that underpin the memory hierarchy is essential for grasping why caches exist, why certain bottlenecks occur, and how modern systems achieve their performance characteristics. This section covers SRAM, DRAM, DDR, GDDR, HBM, and non-volatile memory.

Technology Comparison

TechnologySpeedDensityCost/GBPowerVolatileUse Case
SRAM~1 nsLowVery HighModerateYesCPU Caches
DRAM~50-100 nsHighLowModerateYesMain Memory
DDR4/DDR5~50-80 nsHighLowModerateYesSystem RAM
GDDR6/6X~10-20 nsModerateModerateHighYesGPU Memory
HBM2/3~10-30 nsVery HighHighModerateYesGPU/HPC
NAND Flash~25-100 μsVery HighVery LowLowNoSSDs
Optane (3D XPoint)~10 μsHighModerateLowNoStorage/Memory

The Memory Wall

graph LR
    subgraph "CPU Speed Growth"
        CPU["CPU: ~50%/year<br/>(historical)"]
    end
    subgraph "Memory Speed Growth"
        MEM["DRAM: ~7%/year<br/>(historical)"]
    end
    CPU --> GAP["Growing Gap<br/>(Memory Wall)"]
    MEM --> GAP
    GAP --> CACHE["Solution: Caches, Prefetching, HBM"]

The memory wall is the growing disparity between CPU speed and memory speed. It’s the fundamental reason the memory hierarchy exists.

Why Different Technologies?

RequirementBest TechnologyWhy
Fastest accessSRAM6T cell, no refresh, simple circuit
Largest capacityDRAM1T+1C cell, very dense
Highest bandwidthHBMStacked die, wide interface
Lowest cost/GBNAND FlashMulti-level cells, 3D stacking
Non-volatileNAND/3D XPointRetains data without power

Cross-References

Cross References