Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Is it possible for a direct-mapped cache to achieve a lower miss rate than a fully-associative cache with LRU replacement policy? Explain and provide

image text in transcribed

(a) Is it possible for a direct-mapped cache to achieve a lower miss rate than a fully-associative cache with LRU replacement policy? Explain and provide an example if necessary. (b) Suppose that you have a cache with n sets, and the block size is b. Now suppose you run a program that shows a striding accesses with a stride of s starting from address 0. That is, the addresses generated would be 0, s, 2s, 3s, 4s, . If n = 32, b = 8 bytes, and s = 32 bytes, identify which sets of the cache would be more heavily utilized than others? (c) Suppose that instead of using number of sets that is a power of two, we switch to a number of sets that is prime, i.e. n = 31, Can you identify which sets of the cache would be more heavily utilized than others? Explain your observation. (a) Is it possible for a direct-mapped cache to achieve a lower miss rate than a fully-associative cache with LRU replacement policy? Explain and provide an example if necessary. (b) Suppose that you have a cache with n sets, and the block size is b. Now suppose you run a program that shows a striding accesses with a stride of s starting from address 0. That is, the addresses generated would be 0, s, 2s, 3s, 4s, . If n = 32, b = 8 bytes, and s = 32 bytes, identify which sets of the cache would be more heavily utilized than others? (c) Suppose that instead of using number of sets that is a power of two, we switch to a number of sets that is prime, i.e. n = 31, Can you identify which sets of the cache would be more heavily utilized than others? Explain your observation

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

=+C CA do not imply that A = RT.

Answered: 1 week ago