Computer architecture
Average memory access time (AMAT)
Also called: AMAT · miss penalty · effective access time
Definition
Average memory access time is the cache hit time plus the miss rate multiplied by the miss penalty.
Picture it
Even a small miss rate matters when misses are expensive. Going from 95 % to 98 % hits looks minor, but it cuts the miss term by more than half.
The maths
AMAT = t_hit + miss rate × t_miss_penalty
| Quantity | Unit | Symbol |
|---|---|---|
| time | second | s |
| clock cycles | cycle (count) | 1 |
| percentage | per cent | % |
Worked example
A cache hits in 1 cycle; a miss costs 100 extra cycles. Compare AMAT for hit rates of 95 % and 98 %.
- 95 %: 1 + 0.05 × 100 = 6 cycles
- 98 %: 1 + 0.02 × 100 = 3 cycles
Answer6 cycles versus 3 cycles: the better hit rate halves the average.
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: Averaging hit and miss times equally ignores how rare misses are.
- Misconception: AMAT says nothing about worst-case timing, which real-time systems care about.