Memory Hierarchy
In a multilevel cache with an L2 below the L1, what is the L2's main role?
- ATo eliminate L1 misses altogether by having a faster hit time than the L1
- BLarger and slower than L1, it reduces the L1 miss penalty
- CTo always hold all of the program's data in place of main memory
Show answer and explanation
Answer: B. Larger and slower than L1, it reduces the L1 miss penalty
L1 is built small for speed, so some misses are inevitable. L2 is larger with a longer hit time but still much faster than main memory, so it catches most L1 misses and cuts the L1 miss penalty well below a trip to memory. It is not faster than L1 and cannot eliminate L1 misses. Its capacity is far smaller than main memory, so it cannot hold all data.
- A. L2 is slower than L1 and cannot eliminate L1 misses.
- B. Correct. It absorbs most L1 misses, reducing the miss penalty.
- C. Its capacity is far smaller than main memory, so not all data fits.