The access time of cache memory is 10 ns and main memory is 100 ns. If the hit ratio is 0.9, what is the average memory access time ?
Tripura Public Service Commission - 2026,
Answer: A
The average memory access time is 19 ns.
Taking cache and main memory as accessed in parallel, a hit costs the cache time and a miss costs the main memory time:
\[ \begin{aligned} T &= h\,t_c + (1-h)\,t_m \\ &= 0.9 \times 10 + 0.1 \times 100 \\ &= 9 + 10 = 19\ \text{ns} \end{aligned} \]
If the cache is checked first and a miss then goes to main memory, a miss costs 110 ns and the average is 20 ns, which is not offered, so the paper uses the simpler model. 55 ns is the plain mean of 10 and 100, ignoring the hit ratio, and 90 ns is \(0.9 \times 100\), applying the hit ratio to the wrong memory.
Please log in or register to report this question.