HW#2
HW#2
used for web serving. The new CPU is 10 times faster on computation in the web serving
application than the original processor. Assuming that the CPU is idle for 20% of time,
does computation for 30% of time and is waiting for I/O for 50% time, what is the overall
-- > Average Old Processor Execution CPI= 0.20 1 + 0.30 10 + 0.50 * 1 = 3.70 CPI
-- > Old Processor Average Execution CPI = 0.20 1 + 0.30 1 + 0.50 * 1 = 1 CPI
2.6 Computer A executes the MIPS ISA and has a 2.5 GHz clock frequency. Computer B
executes the x86 and has a 3 GHz clock frequency. On average, programs execute 1.5 times
as many MIPS instructions than x86 instructions. a. For Program P1, Computer A has a
CPI of 2 and Computer B has a CPI of 3. Which computer is faster for P1? What is the
speedup? b. For Program P2, Computer A has a CPI of 1 and Computer B has a CPI of 2.
Step 2 :- (2.6)
CPI of Computer B is 2
2.7 A program has 10% divide instructions. All non-divide instructions take one cycle. All
divide instructions take 50 cycles. a. What is the CPI of this program on this processor? b.
What percent of time is spent just doing divides? c. What would the speedup be if we sped
up divide by 2x?
The 50 period of all dividing instructions takes (a) Average of CPI (old) = 0.10* 50 + 0.90* 1 =
5.90CPI