Question

In: Computer Science

It takes 1 nanosecond (1 x 10-9 s) to move a word from L1 cache to...

It takes 1 nanosecond (1 x 10-9 s) to move a word from L1 cache to the registers and 10 nanoseconds to move a word from L2 cache to the registers. Assuming that all of the words that are not in L1 cache are in L2 cache, what is the percentage reduction in the time it takes to get the 24,000 words of data into the registers if the hit rate is increased from 95% to 97%? Round your answer to the nearest tenth of a percent. Hint: Start by calculating the time to load the words available from L1 cache plus the time to load those from L2 cache, for each hit rate.

Solutions

Expert Solution

Solution

95% L1 Hit and 5% Miss

95% of 24000 (L1 Hit) = 0.95x24000 = 22,800

5% of 24000 (L1 Miss or L2 Hit) = 0.05x24000 = 1200

Time required to move 22,800 words from L1 cache to registers = 22,800 x 1 nanosec = 22,800 nsec

Time required to move 1200 words from L2 cache to registers = 1200 x10 nanosec = 12000 nsec

Total Time required = 22,800 + 12,000 = 34, 800 nsec

97% L1 Hit and 3% Miss

97% of 24,000 (L1 Hit) = 0.97 x 24000 = 23, 280

3% of 24,000 (L1 Miss or L2 Hit) = 0.03 x 24000 = 720

Time required to move 23,280 words from L1 cache to registers = 23,280 x 1 nanosec = 23, 280 nsec

Time required to move 720 words from L2 cache to registers = 720 x 10 nsec = 7200 nsec

Total Time required = 23, 280 + 7200 = 30, 480 nsec

Time Reduction if the L1 hit rate is increased to 97% (from 95%) = 34,800 - 30,480 = 4,320 nsec

Time Reduction (%) = (4,320 / 34,800) x 100 = 12.414%

After Rounding to Nearest 10th of Percent (Time Reduction %) = 12.4%


Related Solutions

Write a 350-word memo to Client X recommending the move to IFRS or the stay with...
Write a 350-word memo to Client X recommending the move to IFRS or the stay with GAAP, and why.
if L1(x) = x is a solution to the ODE: (1-x)L'' - 2xL' +2L = 0...
if L1(x) = x is a solution to the ODE: (1-x)L'' - 2xL' +2L = 0 a.) Show that L1(x) = x is a solution to the ODE 2.) Use reduction of order to find another solution L2(x)
A first-order reaction has rate constants of 4.6 x 10-2 s-1 and 8.1 x 10-2 s-1...
A first-order reaction has rate constants of 4.6 x 10-2 s-1 and 8.1 x 10-2 s-1 at 0 degrees celcius and 20 degrees celcius respectively. what is the value of the activation energy? the answer should be 19 KJ/mol, i'm just very confused on the math has to be done to get this answer. could you please write out a step by step answer?
1. If n=10, ¯ x (x-bar)=43, and s=10, find the margin of error at a 95%...
1. If n=10, ¯ x (x-bar)=43, and s=10, find the margin of error at a 95% confidence level (use at least two decimal places) 2. If n=11, ¯x (x-bar)=35, and s=4, find the margin of error at a 99% confidence level (use at least three decimal places)
IN PYTHON 1) Pig Latin Write a function called igpay(word) that takes in a string word...
IN PYTHON 1) Pig Latin Write a function called igpay(word) that takes in a string word representing a word in English, and returns the word translated into Pig Latin. Pig Latin is a “language” in which English words are translated according to the following rules: For any word that begins with one or more consonants: move the consonants to the end of the word and append the string ‘ay’. For all other words, append the string ‘way’ to the end....
Suppose a two-person household. Person 1 has h1 units of time available and takes l1 units...
Suppose a two-person household. Person 1 has h1 units of time available and takes l1 units of leisure time, while person 2 has h2 units of time available and takes l2 units of leisure time. Collectively, the two persons in the household care about their total consumption c, their total leisure l = l1 + l2, and they have preferences over their total consumption and total leisure. But person 1 faces a market wage w1 and person 2 faces a...
1.Consider the program: .data myArray: .word 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
1.Consider the program: .data myArray: .word 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 .text la $s0, myArray li $s1, 0 loop: sll $t0, $s1, 2 add $t0, $t0, $s0 lw $s2, 0($t0) lw $s3, 4($t0) add $s2, $s2, $s3 sw $s2, 0($t0) addi $s1, $s1, 1 slti $t1, $s1, 9 bne $t1, $zero, loop .end Explain what does this program do? How is the data bound from the .data segment to the base address register $s0? What...
The variable x takes the values ​​from 1 to 100, with these values, create two lists,...
The variable x takes the values ​​from 1 to 100, with these values, create two lists, one where the prime numbers are stored in one, and another where the non-prime numbers are stored, indicate and print the result
1. Find the average value of the function f(x)= 1/ (x^2-9) on the interval from 0...
1. Find the average value of the function f(x)= 1/ (x^2-9) on the interval from 0 ≤ x ≤ 1 2. Find the arc-length of the function f(x)= x^2 from 0 ≤ x ≤ 2
1.) A proton moves with a speed of 5.5 x 10^5 m/s along the +x axis....
1.) A proton moves with a speed of 5.5 x 10^5 m/s along the +x axis. It enters a region where there is uniform magnetic field of 1.5 T, directed of 30 degrees to the x-axis and lying in the x-y plane. Calculate the initial force and acceleration of the proton. 2.) A wire carries a current of 4.5-A in a direction of 35 degrees with respect to the direction of a magnetic field of 0.5 T. Find the magnitude...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT