Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

During the discussion of Iron Law in the classroom, we pointed out the pittfalls of using of only a subset of the parameters ( e

During the discussion of Iron Law in the classroom, we pointed out the pittfalls of using of only a subset of the parameters (e.g., CPI, clock period, instruction count, etc) as a performance metric to compare alternatives. To illustrate this, assume that we have two processors to compare: P1 and P2. P1 has a clock rate of 4GHz, average CPI of 1.8 and 5,000,000 instructions to execute a given program. On the other hand, P2 has a clock rate of 3GHz, average CPI of 1.5 and 1,000,000 instructions to execute the same program.a)[5 points] One mistake people often do is to consider the processor with the highest clock frequency would have the best performance. Calculate the performance of the given program on both processors and check if this is true for P1 and P1.b)[5 points] Another mistake people often do is to consider that the processor executing more instructions would take longer time to finish. Considering that P1 is going to execute 1,000,000 instructions, calculate the number of instructions that P2 is going to execute in the same amount of time (CPIs remain the same).c)[5 points] Yet another mistake people often do is to use MIPS (millions of instructions per second) as a metric to compare the processors and consider the processor with higher MIPS has better performance. Calculate the MIPS of each processor and chech if this is true for P1 and P2.d)[5 points] Why do you think that we have different number of instructions needed on P1 and P2 for the same program given at the beginning? What are the implications of this on performance expectations for our programs? Please explain.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

3.What are the Importance / Role of Bank in Business?

Answered: 1 week ago