Measuring Cache Performance (Cont.)


In most write-through cache organizations, the read and write miss penalties are the same. If we assume that the write buffer stalls are negligible, we can combine the reads and writes by using a single miss rate and the miss penalty:
   Memory-stall clock cycles

= ( Memory accesses / Program ) × Miss rate × Miss penalty
= ( Instructions / Program ) ×
( Misses / Instruction ) × Miss penalty
To capture the fact that the time to access data for both hits and misses affects performance, designers sometime use average memory access time (AMAT) as a way to examine alternative cache designs. Average memory access time is the average time to access memory considering both hits and misses and the frequency of different accesses; it is equal to the following:
   AMAT = Time for a hit + Miss rate × Miss penalty

Question: Calculating Average Memory Access Time (AMAT)
Assume that the read and write miss penalties are the same and ignore other write stalls. Find the AMAT for a processor with



      I used to have a relationship with a blind girl    
      which was rewarding but really challenging.    
      It took me ages to learn how to copy her husband’s voice.