Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

n this assignment, you will use the Macsim simulator for cache simulation ( in Ubuntu 1 4 . 0 4 x 6 4 ) .

n this assignment, you will use the Macsim simulator for cache simulation (in Ubuntu
14.04 x64). You will simulate two different cache replacement policies in two different
cache configurations. You need to collect two types of statistics per each run:
Miss Rate: Rate of number of cache misses to the number of cache accesses.
Hit Rate: Rate of number of cache hits to the number of cache accesses.
You will simulate two different policies: Least Recently Used (LRU), and Least frequent
recently used (LFRU). Whenever some data is brought from the memory, a cache line
must be evicted in order to make room for the new data. These policies determine
which cache lines will be evicted from the cache upon a cache miss.
LRU: Memory replacement algorithm that removes the least recently accessed item
from the cache or memory when space is needed. It uses a timestamp or access order
to track and prioritize items.
LFRU: LFRU is a cache replacement strategy that removes the cache line with the
least frequent access and, when there are equal frequencies, selects the line that was
least recently used. This algorithm integrates features from both Least Recently Used
(LRU) and Least Frequently Used (LFU) policies.
You will work only on level one (L1) data cache. The configurations you will use are:
128 set with 1-way, 2-ways, 4-ways
64 set with 1-way, 2-ways, 4-ways
1. First, read the document on Macsim (macsim.docx) carefully.
2. Run Macsim with LRU policy for different cache configurations. At each run change
cache configuration in params.in

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_2

Step: 3

blur-text-image_3

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions