SLIDE 26 Po-Ning Chen@CM.NCTU chap7-51
Performance
Final note on performance
Under a fixed miss penalty (i.e., a fixed memory access time) which machine should pay more attention to cache design? In other words, which machine will degrade more if an ill design in cache system is adopted.
– CPU with low CPI and high clock rate – CPU with high CPI and low clock rate
Answer: See the examples on page 495.
Po-Ning Chen@CM.NCTU chap7-52
Decreasing miss rate by associativity
T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a E Ei ig gh ht t-
wa ay y s se et t a as ss so
ci ia at ti iv ve e ( (f fu ul ll ly y a as ss so
ci ia at ti iv ve e) ) T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a T Ta ag g D Da at ta a F Fo
ur r-
wa ay y s se et t a as ss so
ci ia at ti iv ve e S Se et t 1 1 T T a ag g D D a a t ta a O On ne e -
w a a y y s se e t t a a s ss so
ci ia a t ti iv ve e ( (d di ir re ec c t t m m a a p pp pe e d d) ) B B l lo
ck k 7 7 1 1 2 2 3 3 4 4 5 5 6 6 T Ta ag g D Da at ta a T Tw wo
wa ay y s se et t a as ss so
ci ia at ti iv ve e S Se et t 1 1 2 2 3 3 T Ta ag g D Da at ta a
(block # = address mod 8) (set # = address mod 4) (set # = address mod 2) (set # = address mod 1)