
54
3/\^
(•
Co-<^^yh(n'^yj
IS
(Average
Memory
Access
Time,
AMAT)»
fxSxR%i®l|—H
t^is^stiPJJ¥±^ie'tSfi^isa^rB^^it»$PT:
AMAT
=
Time
for
a
hit
+
Miss
rate
x
Miss
penalty
•
spTwm^
•
MU¥±^E'isfi#isBf
rai^itmspT:
>
CPU
LI
L2
—»
Ln
Cache Cache
Cache
Hit
Time
Ti
T2
Tn
Miss
rate
Ml
M2
Mn
Miss
penalty
Pi
P2
P„
Memory
AMAT
=
Ti
+
Ml
X
Pi
+
M2
X
P2
+
...
+
Mn
X
Pn
=
Ti
+
^M,.P,.
i=\
[SAmmmT.]
Suppose
that
in
1000
memory
references
there
are
60
misses
in
the
first-level
cache,
30
misses
in
the
second-level
cache,
and
5
misses
in
the
third-level
cache.
Assume
the
miss
penalty
from
the
L3
cache
to
memory
is
100
clock
cycles,
the
hit
time
of
the
L3
cache
is
10
clocks,
the
hit
time
of
the
L2
cache
is
5
clocks,
the
hit
time
of
LI
is
1
clock
cycle,
and
there
are
1.5
memory
references
per
instruction.
(a)
What's
the
global
miss
rate
for
each
level
of
caches?
(b)
What's
the
local
miss
rate
for
each
level
of
caches?
(c)
What
is
the
average
memory
access
time?
(d)
What
is
the
average
stall
cycle
per
instruction?