Skip to content
Tactiverge

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
SI units used in this entry
QuantityUnitSymbol
timeseconds
clock cyclescycle (count)1
percentageper cent%

Worked example

A cache hits in 1 cycle; a miss costs 100 extra cycles. Compare AMAT for hit rates of 95 % and 98 %.

  1. 95 %: 1 + 0.05 × 100 = 6 cycles
  2. 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.