Question about miss ratio with direct mapping cache and fully associative cache?
-
So here are the details: -Consider two alternate caches, each with 4 sectors holding 1 block per sector and one 32-bit word per block. One cache is direct mapped and the other is fully associative with LRU replacement policy. The machine is byte addressed on word boundaries and uses write allocation with write back. The question im stuck on is : 3b). Give an example address stream consisting of only reads that would result in a lower miss ratio if fed to the direct mapped cache than if it were fed to the fully associative cache. Under the problem it has this writen: read 0x00 read 0x04 read 0x08 read 0x0C read 0x14 read 0x00 Any suggestions? I know that fully associative can place any block in main memory in any block in the cache and direct is based on the equation = (block addr. in mem) MOD (# of block frames in cache)
-
Answer:
read 0x14 ; victim 0x00 on associative but 0x04 on direct read 0x00 ; miss on associative, but hit on direct
Josh at Yahoo! Answers Visit the source
Related Q & A:
- If the Lie algebra is a direct sum, then the Lie group is a direct product?Best solution by Mathematics
- How to solve Repeated column in Grails mapping for entity?Best solution by Stack Overflow
- What should I not miss seeing on my round the world trip?Best solution by Yahoo! Answers
- Does anyone miss the yahoo message boards?Best solution by Yahoo! Answers
- Gene mapping question.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.