Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

4. (5 points, With 1 or more errors you get 0 points. Otherwise full point.) Con

ID: 3714447 • Letter: 4

Question

4. (5 points, With 1 or more errors you get 0 points. Otherwise full point.) Consider a three level memory: L1 and L2 are for cache memory and the third level is for the main memory. Access time for L1 is 1 clock cycle, the access time for L2 is two times more than L1 and main memory access time is 10 times more than L2. The miss rate for L1 is 20% and the miss rate for L2 is 5%. What is the effective clock cycle for memory access (AMAT in number of clock cycles)? With 2 GHz clock rate how much time is needed for a program with 1012 instructions to execute?

Explanation / Answer

l1:- 1 clock cycle,

l2:- 2 clock cycle,

l3:- 20 clock cycle

AMAT= 0.8*1 + 0.2( 0.95*2 + 0.05*20) = 0.8 +0.2(2.9)=1.38 clock cycles

so the total time for 10^12 instructions is (10^12*1.38)/2*10^9     =690 seconds

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote