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
3. Change access_cache() function in cache.cc to collect data on Hit Rate and Miss
Rate. Also, change finalize() function in macsim.cc to print these statistics.
4. Run Macsim with LRU and LFRU policies for two different cache configurations. You
need to change access_cache() and find_replacement_line() functions in cache.cc to
modify the cache policy.
5. After completing all simulations and collecting data, write a report. Your report must
include charts and your written code snippets which demonstrate all statistics
gathered. Your report should also include your analyses and observations of the
results. Compare the two cache configurations for two replacement policies.

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago