Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Engineering Rabie A. Ramadan Lecture 2. Table of Contents 2 Architecture Development and Styles Performance Measures Amdahl’s Law.

Similar presentations


Presentation on theme: "Computer Engineering Rabie A. Ramadan Lecture 2. Table of Contents 2 Architecture Development and Styles Performance Measures Amdahl’s Law."— Presentation transcript:

1 Computer Engineering Rabie A. Ramadan Lecture 2

2 Table of Contents 2 Architecture Development and Styles Performance Measures Amdahl’s Law

3 Architecture Development and Styles Performance is the main goal of any architecture Complex instructions Reduces the number of instructions to be used Small number of instructions to perform a job. Using different addressing modes that fits the required task Examples : Complex Instructions Set Computers (CISCs) such as : Intel PentiumTM, Motorola, MC68000TM, and the IBM & Macintosh PowerPCTM.

4 Architecture Development and Styles (Cont.) Speeding up some of the effective instructions More than 80% of the instructions executed are those using: Assignment statements, conditional branching and procedure calls. Simple assignment statements constitute almost 50% of those operations. Optimizing such instructions enhances the performance Example: Reduced Instructions Set Computers (RISCs) such as: Sun SPARCTM and MIPS machines.

5 Amdahl’s Law and Performance Measure Speedup : a measure of how a machine performs after some enhancement relative to its original performance.

6 Amdahl’s Law and Performance Measure (Cont.) Not all program instructions execution time can be enhanced May be part of it speedup due to the enhancement for a fraction of time For more than

7 Group Activity A machine for which a speedup of 30 is possible after applying an enhancement. If under certain conditions the enhancement was only possible for 30% of the time, what is the speedup due to this partial application of the enhancement?

8 Answer

9 Performance Measures

10 Performance analysis: How fast can a program be executed using a given computer? User Point of View Time taken to execute a given job (program) Lab Engineer Total amount of work done in a given time.

11 Performance Measures (Cont.) Definitions Clock Cycle Time The time between two consecutive rising (trailing) edges of a periodic clock signal Cycle Count (CC) The number of CPU clock cycles for executing a job

12 Performance Measures (Cont.) Cycle Time (CT) A mount of time taken by a cycle Clock Frequency (f) / Clock Rate f= 1/ CT

13 First Performance Measure The CPU time to execute a job is : CPU time = Clock Count x Clock Time

14 Performance Measures (Cont.) The average number of Clock Cycles Per Instruction (CPI): In case of the CPI per instruction is known : I i is the repetition time in the given job Not All instructions take the same number of clock cycles

15 Performance Measures (Cont.) The relation between the CPI and CPU Time:

16 Performance Measures (Cont.) Another Measure is the rate of instruction execution per unit time: Millions Instructions Per Second (MIPS)

17 Group Activity Drive CPU Time and MIPS in terms of “Clock Rate”?

18 Group Activity Consider computing the overall CPI for a machine A for which the following performance measures were recorded when executing a set of benchmark programs. Assume that the clock rate of the CPU is 200 MHz.

19 Answer Assuming the execution of 100 instructions, the overall CPI can be computed as:

20 Group Activity Suppose that the same set of benchmark programs considered above were executed on another machine, call it machine B, for which the following measures were recorded. What is the MIPS rating for the machine considered in the previous slide (machine A) and machine B assuming a clock rate of 200 MHz?

21 Answer

22 Group Activity Given the following benchmarks, compute the CPU time and MIPS?

23 Solution Be Carful using it as a performance measure. It does not consider the execution time.

24 More Performance Measures

25 Performance Measure Rate of floating-point instruction execution per unit time Million floating-point instructions per second (MFLOPS) Defined only for subset of instructions where floating point is used

26 Performance Measure (Cont.) Arithmetic Mean Gives a clear picture of the expected behavior of the system Used to compare different systems based on Benchmarks i is the execution time for the i th program n is the total number of programs in the set of benchmarks.

27 Performance Measure (Cont.) Example Note: We could not decide on which system to use due to no great deal of variability ProgramSystem A Execution Time System B Execution Time System C Execution Time v50100500 w200400600 x250500 y400800 z500041003500 Average1180

28 Performance Measure (Cont.) Geometric Mean Gives a consistent measure with which to perform comparisons regardless of the distribution of the data. i is the execution time for the i th program n is the total number of programs in the set of benchmarks.

29 Performance Measure (Cont.) Example ProgramSystem A Execution Time System B Execution Time System C Execution Time v50100500 w200400600 x250500 y400800 z500041003500 Geometric mean 346.6580840.7


Download ppt "Computer Engineering Rabie A. Ramadan Lecture 2. Table of Contents 2 Architecture Development and Styles Performance Measures Amdahl’s Law."

Similar presentations


Ads by Google