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?
- A19 ns
- B55 ns
- C91 ns
Show answer and explanation
Answer: A. 19 ns
Average access time = hit rate × cache access time + (1 − hit rate) × main memory access time = 0.9 × 10 + 0.1 × 100 = 9 + 10 = 19 ns. A small drop in hit rate greatly lengthens the average access time, so cache design directly affects performance.