Answered step by step
Verified Expert Solution
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
x 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 L data cache. The configurations you will use are:
set with way, ways, ways
set with way, ways, ways
First, read the document on Macsim macsimdocx carefully.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started