Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment is to evaluate the impact of different cache configurations on the execution times of applications. You will run three benchmark traces provided for

This assignment is to evaluate the impact of different cache configurations on the
execution times of applications. You will run three benchmark traces provided for you.
Trace1.din, Trace2.din and Trace3.din.
You specify these file names along the path name as the input to Dinero IV. You will
evaluate L1 and L2 misses when adjusting the cache configurations of L2 by adjusting L1
configuration. Both L1 and L2 use write through and use LRU replacement algorithm.
First, you should evaluate just L1 cache, below are the L-1 configurations you must vary.
Size of L1-I and L1-D is fixed to 16KB. Block sizes should be configured as 32 Bytes
and 64 Bytes. Associativity as 1-way, 2-way and 4-way.
Then, add L2 Cache of size 128KB, repeat above tests. The block sizes and associativity
should match the L1s
OR follow the table for all the combinations you should be testing:
L1 size Associativity Block size
16 KB 132 B
16 KB 232 B
16 KB 432 B
16 KB 164 B
16 KB 264 B
16 KB 464 B
L1 & L2 size Associativity Block size
16 KB & 128 KB 132 B
16 KB & 128 KB 232 B
16 KB & 128 KB 432 B
16 KB & 128 KB 164 B
16 KB & 128 KB 264 B
16 KB & 128 KB 464 B
Cycles on Hit and Miss
The table below indicates the number of processor clocks for a hit in each of the L2 cache
configurations. L1 hit takes 1 cycle. If there is no L2 cache, L1 miss penalty is 60 cycles.
L2 miss penalty is also 60 cycles.
2
Size \ Associative 1-way 2-way 4-way
128 Kbyte 456
Use the cache simulator to get the L2 & L1 miss rate and compute the CPI for each
benchmark-cache configuration combination (CPI equation can be found in class notes
and textbook). Use the cycle count for hits and misses of the L2 & L1 and determine
which cache configuration will give the best performance (i.e., the lowest CPI) for each
benchmark.
You are required to make a shells script in order to easily run all possible configurations,
submit this shell script with your results.

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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

=+6. Select the one that would work best for this client.

Answered: 1 week ago