Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:

Slides:



Advertisements
Similar presentations
TU/e Processor Design 5Z032 1 Processor Design 5Z032 The role of Performance Henk Corporaal Eindhoven University of Technology 2009.
Advertisements

Evaluating Performance
Performance COE 308 Computer Architecture Prof. Muhamed Mudawar Computer Engineering Department King Fahd University of Petroleum and Minerals.
Chapter 1 CSF 2009 Computer Performance. Defining Performance Which airplane has the best performance? Chapter 1 — Computer Abstractions and Technology.
CSCE 212 Chapter 4: Assessing and Understanding Performance Instructor: Jason D. Bakos.
Performance ICS 233 Computer Architecture and Assembly Language Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of.
Chapter 4 Assessing and Understanding Performance Bo Cheng.
1 Recap. 2 Measuring Performance  A computer user: response time (execution time).  A computer center manager - throughput - the total amount of work.
Performance D. A. Patterson and J. L. Hennessey, Computer Organization & Design: The Hardware Software Interface, Morgan Kauffman, second edition 1998.
Computer ArchitectureFall 2007 © September 17, 2007 Karem Sakallah CS-447– Computer Architecture.
CS/ECE 3330 Computer Architecture Chapter 1 Performance / Power.
Computer ArchitectureFall 2007 © September 19, 2007 Karem Sakallah CS-447– Computer Architecture.
Assessing and Understanding Performance B. Ramamurthy Chapter 4.
Chapter 4 Assessing and Understanding Performance
Gordon Moore Gordon Moore, cofounder of Intel 1965: 2 x trans. per chip/year After 1970: 2 x trans. per chip/1.5year 摩爾定律.
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
Lecture 3: Computer Performance
1 Lecture 10: FP, Performance Metrics Today’s topics:  IEEE 754 representations  FP arithmetic  Evaluating a system Reminder: assignment 4 due in a.
1 Chapter 4. 2 Measure, Report, and Summarize Make intelligent choices See through the marketing hype Key to understanding underlying organizational motivation.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Performance ICS 233 Computer Architecture and Assembly Language Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of.
CMSC 611: Advanced Computer Architecture Benchmarking Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Chapter 1 Section 1.4 Dr. Iyad F. Jafar Evaluating Performance.
1 Computer Performance: Metrics, Measurement, & Evaluation.
Computer Performance Computer Engineering Department.
Copyright 1995 by Coherence LTD., all rights reserved (Revised: Oct 97 by Rafi Lohev, Oct 99 by Yair Wiseman, Sep 04 Oren Kapah) IBM י ב מ 7-1 Measuring.
1 CHAPTER 2 THE ROLE OF PERFORMANCE. 2 Performance Measure, Report, and Summarize Make intelligent choices Why is some hardware better than others for.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology Sections 1.5 – 1.11.
CDA 3101 Fall 2013 Introduction to Computer Organization Computer Performance 28 August 2013.
10/19/2015Erkay Savas1 Performance Computer Architecture – CS401 Erkay Savas Sabanci University.
1 CS/EE 362 Hardware Fundamentals Lecture 9 (Chapter 2: Hennessy and Patterson) Winter Quarter 1998 Chris Myers.
Performance.
1 CS/COE0447 Computer Organization & Assembly Language CHAPTER 4 Assessing and Understanding Performance.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CEN 316 Computer Organization and Design Assessing and Understanding Performance Mansour AL Zuair.
CSE2021: Computer Organization Instructor: Dr. Amir Asif Department of Computer Science York University Handout # 2: Measuring Performance Topics: 1. Performance:
Lecture2: Performance Metrics Computer Architecture By Dr.Hadi Hassan 1/3/2016Dr. Hadi Hassan Computer Architecture 1.
1  1998 Morgan Kaufmann Publishers How to measure, report, and summarize performance (suorituskyky, tehokkuus)? What factors determine the performance.
Performance Performance
TEST 1 – Tuesday March 3 Lectures 1 - 8, Ch 1,2 HW Due Feb 24 –1.4.1 p.60 –1.4.4 p.60 –1.4.6 p.60 –1.5.2 p –1.5.4 p.61 –1.5.5 p.61.
4. Performance 4.1 Introduction 4.2 CPU Performance and Its Factors
Chapter 4. Measure, Report, and Summarize Make intelligent choices See through the marketing hype Understanding underlying organizational aspects Why.
Lec2.1 Computer Architecture Chapter 2 The Role of Performance.
Performance COE 301 Computer Organization Dr. Muhamed Mudawar College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals.
EGRE 426 Computer Organization and Design Chapter 4.
CMSC 611: Advanced Computer Architecture Performance & Benchmarks Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some.
Performance Computer Organization II 1 Computer Science Dept Va Tech January 2009 © McQuain & Ribbens Defining Performance Which airplane has.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BITS Pilani, Pilani Campus Today’s Agenda Role of Performance.
Chapter 1 Performance & Technology Trends. Outline What is computer architecture? Performance What is performance: latency (response time), throughput.
CSE 340 Computer Architecture Summer 2016 Understanding Performance.
Lecture 3. Performance Prof. Taeweon Suh Computer Science & Engineering Korea University COSE222, COMP212, CYDF210 Computer Architecture.
June 20, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 1: Performance Evaluation and Benchmarking * Jeremy R. Johnson Wed.
BITS Pilani, Pilani Campus Today’s Agenda Role of Performance.
Measuring Performance and Benchmarks Instructor: Dr. Mike Turi Department of Computer Science and Computer Engineering Pacific Lutheran University Lecture.
Performance. Moore's Law Moore's Law Related Curves.
Measuring Performance II and Logic Design
CS161 – Design and Architecture of Computer Systems
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
Defining Performance Which airplane has the best performance?
Morgan Kaufmann Publishers
CSCE 212 Chapter 4: Assessing and Understanding Performance
CS2100 Computer Organisation
Performance of computer systems
Parameters that affect it How to improve it and by how much
Performance.
Chapter 2: Performance CS 447 Jason Bakos Fall 2001 CS 447.
Computer Organization and Design Chapter 4
CS2100 Computer Organisation
Presentation transcript:

Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Defining Performance  Response Time The time it takes to do a task  Execution Time  Throughput The total amount of work done in a given time  Difference? 2:08 PM Task ATask B Time t Calculate Save File Calculate Read File Calculate Save File Calculate Read File / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Defining Performance  Response Time The time it takes to do a task  Execution Time  Throughput The total amount of work done in a given time  Difference? 2:08 PM Task B Time t Calculate Save File Calculate Read File Calculate Save File Calculate Read File Task A 2 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Measuring Performance  Performance = 1 / Execution Time  Response Time = Wall-Clock Time = Elapsed Time ●Processor Time ●+ Memory Access Time ●+ Disk and I/O Access Time ●+ Operating System Time, etc. 2:08 PM Calculate Save File Calculate Read File Calculate Save File Calculate Read File = CPU Time 3 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Measuring Performance  CPU Time ●User CPU Time ●System CPU Time  System Performance:  CPU Performance:  Clock Cycles: ●Clock Period ●Clock Rate 2:08 PM = Execute user code = Call OS functions, e.g. malloc Elapsed time on an unloaded system CPU time T 4 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. CPU Performance  Program CPU Execution Time = Number of CPU Clock Cycles × Clock Cycle Time Number of CPU Clock Cycles = ─────────────────── Clock Rate Exercise: A program takes 10 seconds to run on a 4 GHz CPU. The same program on another CPU would take 20% extra clock cycles, yet it finishes in 6 seconds. What is the other CPU clock rate? 2:08 PM e.g. Clocks × nanosecond Clocks e.g. ───────── GHz CPU-1: # of CPU clock cycles = sec × cycles/sec CPU-2: # of CPU clock cycles = × cycles Clock rate = cycles / seconds = GHz 5 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. CPU Performance  Clocks Per Instruction, CPI The average number of clock cycles each instruction takes to execute. Exercise: Which computer is faster? 2:08 PM ComputerClock Cycle TimeCPI A250 picoseconds2 B500 picoseconds1.2 # of instructions in a program = CPU-A: CPU Execution Time = × × ps = ps CPU-B: CPU Execution Time = × × ps = ps Computer A is ( / ) = times faster than B 6 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. CPU Performance Exercise: Given 3 groups of instructions: A, B and C, it takes different clock cycles to execute an instruction within each group. Given the shown instruction mix, which code sequence is faster to execute? 2:08 PM Instruction Class ABC CPI123 Code Instruction Count ABC Seq1212 Seq2411 Seq1: CPU Execution Time = × + × + × = cycles Seq2: CPU Execution Time = × + × + × = cycles Seq2 is / = times faster than Seq1 Seq1 average CPI = = cycles / instruction Seq2 average CPI = = cycles / instruction 7 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Evaluating Performance  Workload Set of user programs to be executed.  Benchmark Program specifically chosen to measure performance.  Target Benchmarks form a workload that the user hopes will predict the performance of the actual workload.  Today Benchmarks are real applications, from various environments. 2:08 PM 8 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Evaluating Performance  Total Execution Time Which computer is faster?  Arithmetic Mean 2:08 PM Computer AComputer B Pgm11 second5 seconds Pgm2500 seconds100 seconds Computer B = times faster than Computer A Performance B seconds ────────── = ──────── Performance A seconds  Weighted Arithmetic Mean 9 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. SPEC Benchmarks SS ystem Performance Evaluation Corporation ●C●CPU Performance ●G●Graphics/Workstations Performance ●H●High Performance Computing ●J●Java Client/Server ●M●Mail Servers ●N●Network File System ●P●Power ●S●SIP ●V●Virtualization ●W●Web Servers 2:08 PM 10 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. SPEC CPU Benchmarks  SPEC CPU2006 Suite ●CINT2006: 12 Integer Benchmarks ●CFP2006: 17 Floating Point Benchmarks ●Exercise ♦ CPU ♦ Memory Systems ♦ Compilers (Fortran, C, C++) One benchmark has ½ million lines in C++ 2:08 PM 11 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. SPEC CPU Benchmarks CINT2006CFP2006 LanguageApplication AreaLanguageApplication Area CProgramming LanguageFortranFluid Dynamics CCompressionFortranQuantum Chemistry CC CompilerCPhysics / Quantum Chromodynamics CCombinatorial OptimizationFortranPhysics / CFD CArtificial Intelligence: GoC, FortranBiochemistry / Molecular Dynamics CSearch Gene SequenceC, FortranPhysics / General Relativity CArtificial Intelligence: chessFortranFluid Dynamics CPhysics / Quantum ComputingC++Biology / Molecular Dynamics CVideo CompressionC++Finite Element Analysis C++Discrete Event SimulationC++Linear Programming, Optimization C++Path-finding AlgorithmsC++Image Ray-tracing C++XML ProcessingC++Structural Mechanics FortranComputational Electromagnetics FortranQuantum Chemistry CFluid Dynamics C, FortranWeather CSpeech recognition 2:08 PM 12 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. CPU Efficiency 2:08 PM  Is the increase in performance due to higher clocks? 13 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. CPU Efficiency  Implementation Efficiency ●Clock-Normalized Scores Example: Pentium 800 MHz  152 Pentium 3.4 GHz  539 Example: 2:08 PM Normalized Scores: ─── = ─── = Pentium IIIPentium IV CINT2000/MHz CFP2000/MHz CPI was sacrificed to enhance Clock rate. It takes more clocks New instructions; Streaming SIMD Ex2 14 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Amdahl’s Law  When introducing an improvement, Execution Time is divided into 2 parts: ●Affected by the improvement ●Not affected Execution Time Execution Time Affected Execution After = ──────────────── + Time Improvement Amount of Improvement Unaffected Example: How much improvement is required for the multiply hardware to make the program run 5 times faster? 2:08 PM AddMultiply Program Execution Time20 seconds80 seconds ─── = ─── + Not Possible 15 / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. MIPS: Million Instructions Per Second  No Regard to Instruction Type ●Instructions Have Different Capabilities ●Different Computers Have Different Architectures  Different MIPS for Different Programs, Same CPU  MIPS Can Vary Inversely With Performance Example: Which code is faster? 2:08 PM Instruction Class ABC CPI123 4 GHz Clock Instruction Counts in Billions ABC Compiler1511 Compiler / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. MIPS: Million Instructions Per Second CPU Clock Cycles 1 = ( + + ) × = CPU Clock Cycles 2 = ( + + ) × = Execution Time 1 = / = seconds Execution Time 2 = / = seconds MIPS 1 = ( + + ) million instr / seconds = MIPS 2 = ( + + ) million instr / seconds = 2:08 PM Instruction Class ABC CPI123 4 GHz Clock Instruction Counts in Billions ABC Compiler1511 Compiler / 17

Princess Sumaya University – Computer Organization & Design Computer Engineering Dept. Chapter 4