Question

In: Computer Science

We want to improve program performance by %5, we can increase clock rate but doing so...

We want to improve program performance by %5, we can increase clock rate but doing so will require 1.25 times as many clock cycles. Calculate the new clock rate? Calculate what the new clock rate needs to be to accomplish this performance improvement. Current CPU Time is 18.8 and clock rate is 3.5 GHz. CPI = 1.4 and Instruction count = 47

My answer is:

New Clock Cycles = 0.357

New Clock Rate = 17.86/47*1.4 = 0.2712

Is my answer correct?

Solutions

Expert Solution

GIVEN-

CPU time = 18.8 nano seconds

Clock Rate = 3.5 Ghz OR 3.5 x 109 Hz

Clock cycles are the reciprocal of clock rate and vice versa. So,

Clock cycles = 1/3.5 = 0.285714 ns

CPI( cycles per instruction) = 1.4

Instruction Count = 47

We are taking CPU time as 18.8 nano seconds because clock rate given is 3.5 GHz which when converted into hertz during the calculation of CPU time gives a multiple of 10 to the power 9 seconds which is taken as nano seconds.

Now,

Computer performance needs to be improved by 5%, and performance depends on the execution time or CPU time. So, the new CPU time needs to increase by 0.05 times. Then,

Value by which CPU time needs to be incremented  = 0.05 x 18.8 = 0.94 ns

Required CPU time = 18.8 + 0.94 = 19.74 ns

Now, as given in the question for this CPU time the clock rate can be increased which will require 1.25 times clock cycles. So,

New Clock cycles = 1.25 x 0.285714 = 0.3571425 ns

New Clock Rate = 1/New Clock cycles = 1/0.3571425 ns = 2.8 GHz

But this is not the required rate as if CPU time is calculated with this clock rate then it won't give the CPU time to be 19.74 ns which is required to be increase the performance by 5%.

-> CPU time = Instruction count x CPI x clock cycle time

-> CPU time = Instruction count x CPI / clock rate

New CPU Time with clock rate 2.8 = (Instruction count * CPI)/clock rate => (47*1.4)/2.8 => 23.5 ns

Now the CPU time much more than the required CPU time. So,

Required clock rate needs to be to accomplish this performance improvement = (Instruction count * CPI)/CPU time

=> (47*1.4)/19.74 Ghz => 3.33 GHz


Related Solutions

We want to design a simple "four clock pulse" timer circuit. In addition to the clock...
We want to design a simple "four clock pulse" timer circuit. In addition to the clock input, the timer has a "Restart" input (R), three "data" outputs (ABC) which indicate the count, and one "beeper" output (D). The behavior of the circuit is as follows: Idle Mode The timer output is ABC=100 and the beeper is off (D=0) as long as R=0. If R=1 on any clock edge in this mode, the timer goes into the... Restart/Hold Mode The timer...
1. You want to design a pendulum for a grandfather clock so that it has a...
1. You want to design a pendulum for a grandfather clock so that it has a period of 2.00 seconds (so that one “tick” plus one “tock” occur during one complete period). The pendulum has a heavy 8.00-kg bob. (Throughout this problem, assume an ideal simple pendulum: the pendulum’s arm has negligible mass, the bob can be approximated as a point-mass, the initial angle of displacement is small, and there is negligible friction.) a.) If you want the clock to...
What kinds of program can we use GPU to optimize the performance?
What kinds of program can we use GPU to optimize the performance?
Recommend ways in which management can improve a firm’s financial performance? recommendations should lead to increase...
Recommend ways in which management can improve a firm’s financial performance? recommendations should lead to increase in ROE and/or market value ratios trough business improvements rather than mechanical statements like reduce total equity.
What we want the program to do: We need to write a program, in Java, that...
What we want the program to do: We need to write a program, in Java, that will let the pilot issue commands to the aircraft to get it down safely on the flight deck. The program starts by prompting (asking) the user to enter the (start) approach speed in knots. A knot is a nautical mile and is the unit used in the navy and by the navy pilots. After the user enters the approach speed, the user is then...
Let’s say I want to see if four years of college can improve SAT scores. 5...
Let’s say I want to see if four years of college can improve SAT scores. 5 randomly sampled high school freshman were asked to take the SAT and their scores were (1010, 1150, 1310, 1250, 980). After four years of college those same 5 students again took the SAT exam. Their scores after college were (1030, 1100, 1380, 1240, 1100). State the null and alternative hypotheses, find the test statistic, the rejection region, the p-value and state your conclusion.
Java For this project, we want to build a calculator program that can perform simple calculations...
Java For this project, we want to build a calculator program that can perform simple calculations and provide an output. If it encounters any errors, it should print a helpful error message giving the nature of the error. You may use any combination of If-Then statements and Try-Catch statements to detect and handle errors. Program Specification Input Our program should accept input in one of two ways: If a command-line argument is provided, it should read input from the file...
Computer A has an overall CPI of 1.5 and can be run at a clock rate...
Computer A has an overall CPI of 1.5 and can be run at a clock rate of 2.5GHz. Computer B has a CPI of 4 and can be run at a clock rate of 4GHz. We have a particular program we wish to run. When compiled for computer A, this program has exactly 100,000 instructions. How many instructions would the program need to have when compiled for Computer B, in order for the two computers to have exactly the same...
In which three categories can process reengineering improve performance?
In which three categories can process reengineering improve performance?
What is the pipelining technique? How does this technique improve the performance of multicore processor so...
What is the pipelining technique? How does this technique improve the performance of multicore processor so that multimedia applications could run on microcomputers at high speed? Please write, not a screenshot
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT