Question
Assume the following information is gathered about a system: 95% of all main memory accesses are found in the cache. 25% of references to the
Assume the following information is gathered about a system:
95% of all main memory accesses are found in the cache.
25% of references to the cache are writes.
Each cache block is two words, and the whole block is read on any miss.
At any time, 30% of the blocks in the cache have been modified.
The cache uses write allocate on a write miss.
The bus reads or writes a single word at a time (the memory system can not read or write two words at once).
A) Assuming that write-through is used, find the average number of memory accesses per CPU reference to the cache. Note that when updating the block in memory, only the modified word is written to memory, not the entire block. Hint: to find the average memory accesses per request to cache, find the number of accesses to memory on cache hits and cache misses separately. Also, you need to distinguish between read-hits, read-misses, write-hits and write-misses. Consequently, you need to fill out the following table:
B) Repeat part a, but assuming the cache uses write-back.
hit? Access Type Block dirty? Frequency Memory accesses Vg. of memory accesses Cache Read Write Yes No Read Write No TotalStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started