Question

(a)What is the average memory access time (AMAT) if a cache uses write-back strategy and 20%...

(a)What is the average memory access time (AMAT) if a cache uses write-back strategy and 20% of the data blocks to be swapped out are dirty. Assume that the miss rate is 15%, the hit time of the cache is 1 cycle and the miss penalty is 8 cycles for the data blocks that are not dirty and 20 cycles for those blocks that are dirty.

(b) What is the speedup up if we add a “write-buffer” that eliminates 40% of the stall cycles to write back the dirty blocks?

0 0
Add a comment Improve this question Transcribed image text
Answer #1


Whenever we miss, we must get the required block from memory incurring a 8 cycle penalty.
In 20% of the cases the replaced block will be dirty which means that we incur a 20 cycle
penalty to write the dirty block out to memory.

So, the miss penalty is 8 + (20%) * 100 = 9.6 cycles.

average memory access time = Hit time + (Miss rate x Miss penalty)

Hit time=1 cycle miss rate=20% miss penality is 9.6 cycles

AMAT = 1+(20%*9.6)=2.92
   1+(1.92)=2.92

Add a comment
Know the answer?
Add Answer to:
(a)What is the average memory access time (AMAT) if a cache uses write-back strategy and 20%...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT