Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12. Assume that the cache size is 512 kB, and each cache line is 128 Bytes. (1) If it's a 4-way associative cache, how many

image text in transcribed

12. Assume that the cache size is 512 kB, and each cache line is 128 Bytes. (1) If it's a 4-way associative cache, how many sets are there? If it's a 2-way associative cache, how many sets are there? (10%) (2) Let's assume the cache is initially empty, and LRU policy is used for cache line replacement. If the following memory blocks are accessed: Mem-block #7, 1031, 2055, 4103, 1031, 7, 2055, 3079, 1031, 3079 What is the cache hit/miss rate if the cache is 4-way associative? Put Hit or Miss in the blanks in the table below. (5%) 7 1031 2055 4103 1031 7 2055 3079 1031 3079 (3) Given the same conditions as the question above, what is the cache hit/miss rate if the cache is 2-way associative? Put Hit or Miss in the blanks in the table below. (5%) 7 1031 2055 4103 1031 7 2055 3079 1031 3079

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago