Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I just need help understanding how to do part D of this question. Problem 1 (each 5 points) (a) A program consisting of a total

image text in transcribed
I just need help understanding how to do part D of this question.
Problem 1 (each 5 points) (a) A program consisting of a total of 250 instructions contains a 50-instruction loop that is executed 10 times. The processor contains a cache, as described in Section 1.2.2. Fetching and executing an instruction that is in the main memory requires 20 time units. If the instruction is found in the cache, fetching and executing it requires only 2 time units. Ignoring operand data accesses, calculate the ratio of program execution time without the cache to execution time with the cache. This ratio is called the speedup due to the use of the cache. Assume that the cache is initially empty, that it is large enough to hold the loop, and that the program starts with all instructions in the main memory. (b) Generalize part (a) by replacing the constants 250, 50, 10 (loop), 20 (time unit), and 2 with the variables w, x, y, m, and c. Develop an expression for speedup. (e) For the values w = 250, x = 50, m = 20, and c = 2 what value ofy results in a speedup of 5? d) Consider the form of the expression for speedup developed in part (b). What is the upper limit on speedup as the number of loop iterations, y, becomes larger and larger

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

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

write code that increases numbins by 3

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago