Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. [24 marks] 1) Compulsory misses occur the first time a program touches a cache line. 2) Conflict misses occur when more than 'm' lines

2. [24 marks] 1) Compulsory misses occur the first time a program touches a cache line. 2) Conflict misses occur when more than 'm' lines map to the same set in an m-way set-associative cache. 3) Capacity misses occur when a program's working set exceeds the cache capacity. It is hard to do much about compulsory misses, but both conflict and capacity misses are affected by the geometry parameters of a cache: its capacity, its associativity (wayness), and its cache-line size. a) [8 marks] If we increase the capacity 'S' of the cache, but keep the other two parameters constant, will i) conflict misses, and ii) capacity misses, increase or decrease? Explain. Also, is there a downside to larger caches? Explain. b) [8 marks] If we increase the associativity (wayness) 'm' of the cache, but keep the other two parameters constant, will i) conflict misses, and ii) capacity misses, increase or decrease? Explain. Also, is there a downside to increased associativity? Explain. c) [8 marks] If we increase the cache-line size 'L' of the cache, but keep the other two parameters constant, will the miss rate increase or decrease i) for programs with a high spatial locality, and ii) for programs with low spatial locality? Explain. 

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions