You purchase a machine with the following features: • 85% of all memory access a
ID: 3766238 • Letter: Y
Question
You purchase a machine with the following features:
• 85% of all memory access are found in the cache
• Each cache block is two words, and the whole block is read on any miss
• The processor sends references to its cache at the rate of 109 words per second
• 30% of those references are writes
• Assume that the memory system can support 109 words per second, reads or writes
• The bus reads or writes a single word at a time (the memory system cannot read or write two words at once)
• Assume at any one time, 40% of the blocks in the cache have been modified
• The cache uses write allocate on a write miss You are considering adding a peripheral to the system, and you want to know how much of the memory system bandwidth is already used.
Calculate the percentage of memory system bandwidth used on average for the following CASE (be sure to state any assumptions):
(A) The cache is write back
Explanation / Answer
b) The cache is write back.
Total Bandwidth Used = BW used on Read hit + BW used on Read miss + BW used on Write hit
+ BW used on write miss
; = 0 + 109 * 0.15 * 0.7 * [2 * 0.4 + 2] + 0 + 109 * 0.15 * 0.3 * [2 * 0.4+ 2]
; = 109 * ?
Total Bandwidth Used 109 * 0.42
---------------------------- = ------------- = 0.42
Total Bandwidth 107
reads are 70% of total number of references
writes are 30% of total number of references
block size = 2 words
* The term 2*0.4 refers to replacing the dirty block (0.4 is the probability of the block to be dirty). We write back the dirty block (2 words) and read needed block (another 2 words). Write hit 0 Write hit does not generate any traffic on the bus, just makes the block in cache dirty. Write miss 109 * 0.15 * 0.3 * [2 * 0.4 + 2] On a write miss we have to load a block (2 words) to cache because of write allocate policy,
and write a dirty block to main memory (2 * 0.4).
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.