Skip to main content
Home › Categories › Artificial Intelligence & Computing › Computer Memory and Storage Hierarchy: SRAM, DDR5 DRAM, HBM, and NVMe Internals

Computer Memory and Storage Hierarchy: SRAM, DDR5 DRAM, HBM, and NVMe Internals

Author: ZUVDEX Team 4 min read
computer memory hierarchy sram dram nvme 6t sram vs 1t1c dram refresh ddr5 memory channels bandwidth hbm3e hbm4 3d stacked silicon interposer nvme pcie gen5 ssd flash ftl cxl compute express link memory pooling

No single physical memory technology is simultaneously sub-nanosecond fast, terabyte-dense, cheap per gigabyte, and non-volatile when power turns off. Computer engineering resolves that physical impossibility through a pyramid-shaped Memory and Storage Hierarchy—placing tiny, blazing 6-transistor SRAM caches directly next to arithmetic ALUs, gigabytes of 1-transistor-1-capacitor DRAM/HBM across wide memory buses, and terabytes of 3D NAND Flash on parallel PCIe NVMe lanes.

Key Highlights

  • On-chip SRAM uses 6 transistors per bit (`6T`), switching in <1 nanosecond with zero refresh needed, but consumes large silicon die area (~20–30 MB/chip on CPUs, up to hundreds of MB on wafer/AI chips).
  • Main DRAM (`DDR5` / `LPDDR5X`) stores each bit as charge in a microscopic `1T1C` capacitor—10× denser than SRAM, but destructive reads and leakage require periodic 32–64ms refresh cycles.
  • High-Bandwidth Memory (`HBM3e` / `HBM4`) stacks 8 to 16 DRAM dies vertically with Through-Silicon Vias (TSVs) over a 1,024-to-2,048-bit silicon interposer, delivering 4–10+ TB/s to AI GPUs.
  • NVMe SSDs talk directly over PCIe Gen4/Gen5 lanes via up to 64,000 parallel I/O queues (delivering 7–14 GB/s per drive), managed internally by a Flash Translation Layer (FTL) for wear leveling and garbage collection.

SRAM vs DDR5 vs HBM vs Unified Apple/Grace LPDDR5X

Understanding memory bandwidth clarifies why a consumer gaming PC with 128 GB of dual-channel DDR5 (`~90 GB/s`) generates 70B LLM tokens slowly (`~2 tokens/sec`), whereas an Apple M-Max/Ultra workstation (`400–800 GB/s` wide LPDDR5X) runs ~6× faster, and an HBM3e data-center accelerator (`4,800–8,000 GB/s`) runs 50× faster.

Meanwhile, Compute Express Link (CXL) running cache-coherent memory protocols atop PCIe physical lanes allows database and AI inference servers to attach terabytes of disaggregated DRAM pools for giant KV caches and in-memory vector graphs.

Memory / Storage Tier Access Latency Typical Bandwidth Volatility & Endurance
On-Chip L1 / Shared SRAM 0.5 – 2 ns 15 – 30+ TB/s internal Volatile; infinite read/write endurance
GPU HBM3e / HBM4 ~90 – 110 ns 4.8 – 10+ TB/s per package Volatile; ECC protected; CoWoS silicon interposer
Server 8–12ch DDR5 ECC ~80 – 100 ns 300 – 550 GB/s per socket Volatile; SECDED / Chipkill ECC protected
Enterprise NVMe Gen5 SSD 15 – 60 μs (15,000 ns) 12 – 14 GB/s seq, 2M+ IOPS Non-volatile; finite P/E cycles managed by FTL
Object / Cold HDD Archive 5 – 12 ms (5,000,000 ns) 250 MB/s per spindle Non-volatile archival cold backup

Inside NVMe SSDs: Pages, Erase Blocks, and Write Amplification

NAND Flash exhibits a crucial physical asymmetry: the controller reads and writes 4 KB–16 KB pages fast, but **cannot overwrite a page in place** without first erasing an entire multi-megabyte Erase Block. An internal ARM/RISC-V controller running the Flash Translation Layer (FTL) remaps logical block addresses out-of-place and runs background garbage collection—explaining why append-only LSM-Trees and sequential Parquet/SafeTensors writes extend SSD lifespan and preserve consistent p99 tail latency.

  • Always use ECC (Error-Correcting Code) RAM on servers and AI workstations—cosmic rays and dense capacitor crosstalk flip silent single bits that corrupt weights and databases.
  • Keep 15%–20% free capacity unallocated (over-provisioning + TRIM) on heavily written database NVMe drives to prevent garbage-collection write amplification cliffs.
  • Use GPUDirect Storage (GDS) to DMA-stream checkpoints directly between NVMe drives and GPU HBM without bouncing through CPU RAM.

FAQs

Why don’t consumer graphics cards use HBM instead of GDDR6/GDDR7?

HBM requires stacking multiple thinned DRAM dies with microscopic Through-Silicon Vias mounted onto an expensive TSMC CoWoS silicon interposer alongside the GPU die—justified for multi-thousand-dollar data-center accelerators, whereas GDDR7 solders directly onto standard fiberglass PCBs cheaply.

What is the difference between TLC and QLC NAND Flash in SSDs?

TLC stores 3 bits (8 voltage levels) per cell for higher endurance and sustained write speed, whereas QLC packs 4 bits (16 tight voltage levels) per cell—ideal for massive read-heavy AI dataset/vector-index caching at lower dollar-per-terabyte cost.

References & Sources

  • Jacob, Bruce; Ng, Spencer; Wang, David — Memory Systems: Cache, DRAM, Disk, Morgan Kaufmann.
  • NVM Express Consortium — NVMe Base Specification 2.0+.
  • Jun, Hyunhee et al. (2017) — HBM (High Bandwidth Memory) DRAM Technology and Architecture, IEEE International Memory Workshop.