Memory and storage hierarchy — layered view
Where each kind of storage sits and how data moves between levels.
Module 4
Session 4.1
Lesson 2 of 4
Memory & Storage Hierarchy
Capacity, Access Speed, Volatility, and Storage Tiers
Interactive Hierarchy Pyramid
Click any layer
Registers
Cache (L1/L2/L3)
Main Memory (RAM)
⚡ Volatile Storage Above | 🔒 Non-Volatile Below
Nonvolatile Memory (SSD / NVMe)
Hard-Disk Drives (HDD)
📦 Secondary Storage Above | 🗄️ Tertiary Storage Below
Optical Disk (CD / DVD / BD)
Magnetic Tapes
⬆ Access Speed: Faster
⬇ Storage Capacity: Larger
Hierarchy Overview Rules
- Trade-Off Principle: Faster storage technologies cost more per byte, limiting their practical capacity. Slow storage is cheap and massive.
- Primary Storage: Directly accessible by the CPU via internal buses (Registers, Caches, Main RAM). Extremely fast, but volatile.
- Secondary Storage: Non-volatile media used to retain programs and data persistently (NVM, SSDs, HDDs).
- Tertiary Storage: High-capacity archive media designed for long-term offsite backups (Optical Disks, Magnetic Tapes).
CPU Memory Fetch Simulation
Simulate fetching data from different memory tiers to experience the scale of latency gaps.
Ready to simulate data access... Click a button above to execute a CPU Read operation.