CPUs and architecture
If the cache access time is 10 ns, the main memory access time is 100 ns, and the cache hit rate is 90%, what is the average access time? Assume that a miss takes only the main memory access time.
- A19 ns
- B55 ns
- C91 ns
Show answer and explanation
Answer: A. 19 ns
Average access time = 0.9 × 10 + 0.1 × 100 = 19 ns. At a 99% hit rate it becomes 0.99 × 10 + 0.01 × 100 = 10.9 ns—about 1.7× faster from a 9-percentage-point change. Because miss rate dominates performance this way, caches use multiple levels and tuned capacity and associativity to maximize hit rate.