Assuming an LRU replacement policy, how many hits does | StudySoup

Textbook Solutions for Computer Organization and Design

Chapter 5 Problem 5.13.1

Question

In this exercise, we will examine how replacement policies impact miss rate. Assume a 2-way set associative cache with 4 blocks. To solve the problems in this exercise, you may find it helpful to draw a table like the one below, as demonstrated for the address sequence “0, 1, 2, 3, 4.”

                   

Consider the following address sequence: 0, 2, 4, 8, 10, 12, 14, 16, 0

Assuming an LRU replacement policy, how many hits does this address sequence exhibit?

Solution

Step 1 of 7)

The first step in solving 5 problem number 81 trying to solve the problem we have to refer to the textbook question: In this exercise, we will examine how replacement policies impact miss rate. Assume a 2-way set associative cache with 4 blocks. To solve the problems in this exercise, you may find it helpful to draw a table like the one below, as demonstrated for the address sequence “0, 1, 2, 3, 4.”                   Consider the following address sequence: 0, 2, 4, 8, 10, 12, 14, 16, 0Assuming an LRU replacement policy, how many hits does this address sequence exhibit?
From the textbook chapter Large and Fast: Exploiting Memory Hierarchy you will find a few key concepts needed to solve this.

Step 2 of 7)

Visible to paid subscribers only

Step 3 of 7)

Visible to paid subscribers only

Subscribe to view the
full solution

Title Computer Organization and Design 5 
Author David A. Patterson
ISBN 9780124077263

Assuming an LRU replacement policy, how many hits does

Chapter 5 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back