Question
Consider a memory hierarchy consisting of a 128 byte cache and 1kB (i.e., 1024 byte) main memory. Block size is 32 bytes. Define blocks
Consider a memory hierarchy consisting of a 128 byte cache and 1kB (i.e., 1024 byte) main memory. Block size is 32 bytes. Define blocks in main memory as MO, M1, M2, .. and blocks in the cache as Co, C1, C2, .. a) How many blocks are in the cache? How many blocks are in main memory? b) If the cache is direct mapped, what cache blocks can M5 be placed into? c) If the cache is 2-way set associative, what cache blocks can M5 be placed into? d) Assume that the cache hit time is 1ns and the miss penalty is 5ns. What is the average memory access time for a program with 5% miss rate?
Step by Step Solution
3.40 Rating (162 Votes )
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 StartedRecommended Textbook for
Modern Operating Systems
Authors: Andrew S. Tanenbaum, Herbert Bos
4th edition
013359162X, 978-0133591620
Students also viewed these Computer Network questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App