Question: Q2: Computer Performance/Amdahl's Law You want to compare the performance of a program Progl on two different processors P1 and P2 of clock rates 3

Q2: Computer Performance/Amdahl's Law You want to compare the performance of a program Progl on two different processors P1 and P2 of clock rates 3 GHz and 2.5 GHz. The Processors have 3 categories of instructions each with the following Cycles Per Instruction (CPI) Also, compiling Prog/ produces the following Instruction Count (IC) percentages in each category for each machine. [Total Instruction Class CPI (P1) IC (P1) CPI (P2)IC (P2) 2 2 5 millions 1 million 4 millions 2 4 6 millions 1 million 3 millions (a) Calculate the average CPIs of Progl on each processor? Show your work. (b) Calculate the peak and real MIPS of each processor. Show your work. (c) Which processor is faster (in time) and by how much? Show your work. (d) Comment on the results of real MIPS and the execution times (from b and c) (e) You are given 2 design choices as below which cost the same to select form for machine P1. Using Amdahl's law show which choice is better. Note that in Amdahl's law the factors f and 1-f refer to percentages of execution time and not number of instructions. i. ii. Improving class A instruction by a factor of 2 Improving class C instruction by a factor of 2. Q2: Computer Performance/Amdahl's Law You want to compare the performance of a program Progl on two different processors P1 and P2 of clock rates 3 GHz and 2.5 GHz. The Processors have 3 categories of instructions each with the following Cycles Per Instruction (CPI) Also, compiling Prog/ produces the following Instruction Count (IC) percentages in each category for each machine. [Total Instruction Class CPI (P1) IC (P1) CPI (P2)IC (P2) 2 2 5 millions 1 million 4 millions 2 4 6 millions 1 million 3 millions (a) Calculate the average CPIs of Progl on each processor? Show your work. (b) Calculate the peak and real MIPS of each processor. Show your work. (c) Which processor is faster (in time) and by how much? Show your work. (d) Comment on the results of real MIPS and the execution times (from b and c) (e) You are given 2 design choices as below which cost the same to select form for machine P1. Using Amdahl's law show which choice is better. Note that in Amdahl's law the factors f and 1-f refer to percentages of execution time and not number of instructions. i. ii. Improving class A instruction by a factor of 2 Improving class C instruction by a factor of 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
