Storage Pyramid Levels
You'll learn: How computer systems organize memory into multiple layers, from lightning-fast registers to massive but slow storage devices.
The Memory Pyramid
Imagine a pyramid where the top is tiny but blazingly fast, and the bottom is massive but slow. Computer systems organize storage exactly this way, balancing speed, size, and cost.
Each level trades capacity for performance:
From Top to Bottom
Registers (top tier)
The fastest storage, built directly into the CPU. Measured in bytes or dozens of entries. Access time: nanoseconds or less. You've seen these as the general-purpose registers we use in assembly instructions.
Cache Levels (L1, L2, L3)
Small, fast memory sitting between the CPU and main memory. Measured in kilobytes to megabytes. Each level gets slightly larger but slower.
Main Memory (RAM)
The "working space" for running programs. Gigabytes in size. Still fast, but slower than cache. This is where the instruction cycle fetches instructions from.
Disk Storage (SSD/HDD)
Permanent storage for programs and data. Terabytes in capacity but thousands of times slower than RAM. Data survives when power is off.
Tape Storage (bottom tier)
Archival storage. Cheap per gigabyte, extremely large capacity, but access time measured in seconds or minutes. Used for backups and long-term archives.
The Trade-off
As you move down the pyramid, you get more space but slower access. As you move up, you get blazing speed but tiny capacity. The Memory Hierarchy concept leverages this: frequently-used data moves up, rarely-used data stays down.
Key Takeaway: Computer storage forms a pyramid with registers at the top (fastest, smallest) down through cache, RAM, disk, and tape (slowest, largest), creating a hierarchy that balances speed, capacity, and cost.