Memory Hierarchy
In a typical computer's memory hierarchy, which property holds more strongly for upper levels (closer to the CPU)?
- AFaster, but smaller in capacity and more expensive per bit
- BSlower, but larger in capacity and cheaper per bit
- CFaster, larger and cheaper per bit
Show answer and explanation
Answer: A. Faster, but smaller in capacity and more expensive per bit
Storage closer to the CPU, such as registers and L1 cache, is faster but uses area-hungry circuits such as SRAM, so it costs more per bit and has less capacity. Lower levels are slower but cheaper and larger, continuing to DRAM main memory and then storage such as SSDs. If fast, large and cheap memory existed there would be no need for a hierarchy; since it does not, the hierarchy exploits locality to keep needed data in small, fast memory.
- A. Correct. Upper levels are faster but smaller and costlier per bit.
- B. This describes lower levels, farther from the CPU.
- C. A hierarchy is needed precisely because fast, large and cheap memory does not exist.