CPUs and architecture

In a typical computer, which lists the memory hierarchy from fastest to slowest access?

  1. ASSD → main memory → L2 cache → L1 cache → registers
  2. BMain memory → registers → SSD → L1 cache
  3. CRegisters → L1 cache → L2 cache → main memory (DRAM) → SSD
Show answer and explanation

Answer: C. Registers → L1 cache → L2 cache → main memory (DRAM) → SSD

Storage closer to the CPU is faster and smaller; farther away it is slower, larger and cheaper. Roughly: registers under one cycle, L1 about 1 ns (tens of KB), L2 a few ns (hundreds of KB to a few MB), L3 over ten ns (tens of MB), DRAM about 100 ns (tens of GB), and SSDs tens to 100 µs (several TB). Keeping hot data in the fast levels delivers fast, large and affordable storage overall.

Memory hierarchy of a computer Fast, small, expensive per bit Registers L1 cache L2/L3 cache Main memory (DRAM) Storage (SSD/HDD) Slow, large, cheap per bit
Memory hierarchy of a computer · View in diagrams

Related calculators

Books on CPUs and architecture Ad

As an Amazon Associate I earn from qualifying purchases.

More CPUs and architecture questions

  1. Approximately how many instructions per second can a processor with a 2 GHz clock and an average CPI (clocks per instruction) of 0.5 execute?
  2. If 90% of a program can be parallelized, what is the theoretical maximum speedup when it runs on an unlimited number of processors?
  3. Which scheme performs the same operation on multiple data items simultaneously with a single instruction?
  4. Which CPU configuration combines high-performance cores and power-efficient cores and uses them according to the workload?
  5. Which technique examines instruction dependencies and executes ready instructions in an order different from the program order to improve performance?

Comparisons in this topic