Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.

Slides:



Advertisements
Similar presentations
CMSC 611: Advanced Computer Architecture Performance Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Advertisements

CS1104: Computer Organisation School of Computing National University of Singapore.
Performance What differences do we see in performance? Almost all computers operate correctly (within reason) Most computers implement useful operations.
TU/e Processor Design 5Z032 1 Processor Design 5Z032 The role of Performance Henk Corporaal Eindhoven University of Technology 2009.
Evaluating Performance
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:
100 Performance ENGR 3410 – Computer Architecture Mark L. Chang Fall 2006.
Computer Performance CS350 Term Project-Spring 2001 Elizabeth Cramer Bryan Driskell Yassaman Shayesteh.
Computer Organization and Architecture 18 th March, 2008.
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.
Chapter 4 Assessing and Understanding Performance Bo Cheng.
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.
Copyright © 1998 Wanda Kunkle Computer Organization 1 Chapter 2.1 Introduction.
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 摩爾定律.
Lecture 3: Computer Performance
1 Chapter 4. 2 Measure, Report, and Summarize Make intelligent choices See through the marketing hype Key to understanding underlying organizational motivation.
1 Measuring Performance Chris Clack B261 Systems Architecture.
CMSC 611: Advanced Computer Architecture Performance Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Computer Organization and Design Performance Montek Singh Mon, April 4, 2011 Lecture 13.
1 Computer Performance: Metrics, Measurement, & Evaluation.
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.
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.
1  1998 Morgan Kaufmann Publishers How to measure, report, and summarize performance (suorituskyky, tehokkuus)? What factors determine the 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.
September 10 Performance Read 3.1 through 3.4 for Wednesday Only 3 classes before 1 st Exam!
Performance – Last Lecture Bottom line performance measure is time Performance A = 1/Execution Time A Comparing Performance N = Performance A / Performance.
Computer Organization Instruction Set Architecture (ISA) Instruction Set Architecture (ISA), or simply Architecture, of a computer is the.
4. Performance 4.1 Introduction 4.2 CPU Performance and Its Factors
Lecture 5: 9/10/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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.
L12 – Performance 1 Comp 411 Computer Performance He said, to speed things up we need to squeeze the clock Study
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.
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.
CPEN Digital System Design Assessing and Understanding CPU Performance © Logic and Computer Design Fundamentals, 4 rd Ed., Mano Prentice Hall © Computer.
Performance. Moore's Law Moore's Law Related Curves.
Computer Architecture & Operations I
CS161 – Design and Architecture of Computer Systems
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
September 2 Performance Read 3.1 through 3.4 for Tuesday
Defining Performance Which airplane has the best performance?
Computer Architecture & Operations I
Morgan Kaufmann Publishers
CSCE 212 Chapter 4: Assessing and Understanding Performance
CS2100 Computer Organisation
Defining Performance Section /14/2018 9:52 PM.
Computer Performance He said, to speed things up we need to squeeze the clock.
CMSC 611: Advanced Computer Architecture
CMSC 611: Advanced Computer Architecture
Parameters that affect it How to improve it and by how much
Computer Performance Read Chapter 4
Performance.
Chapter 2: Performance CS 447 Jason Bakos Fall 2001 CS 447.
Computer Organization and Design Chapter 4
CS2100 Computer Organisation
Presentation transcript:

Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos

Fall 2001CS 4472 Introduction Performance measures are important Factors that contribute to performance –Instruction utilization in software –How well the hardware implements the instructions –How well the memory and I/O system perform What are the best metrics to use for determining performance?

Fall 2001CS 4473 Defining Performance How do we define performance? –response (or execution) time the time between the start and the finish of a task –throughput total amount of work done in a given time –Almost just an inverse relationship, but throughput can be increased with parallelism

Fall 2001CS 4474 Execution Time For now, we are only concerned with execution Time For two machines, X and Y…

Fall 2001CS 4475 Execution Time If X is n times faster than Y…

Fall 2001CS 4476 Execution Time Execution time is measured in seconds Program execution time – “wall-clock time” to execute a program CPU execution time – amount of time the CPU spends executing a program (on a time-shared system) –Extra time passes while other programs are being executed –Extra time passes while a program waits for I/O User CPU time – CPU time spent executing a program System CPU time – amount of CPU time the operating system spends on behalf of a program –Ex. system calls, such as I/O, synchronization, etc.

Fall 2001CS 4477 More Terminology System performance – elapsed time on an unloaded system CPU performance – CPU time

Fall 2001CS 4478 Clock Cycles CPUs use a clock to synchronize events that occur in hardware –Events occur on the rising or falling edge of the clock signal –The clock is a global signal –Has a discrete time intervals called clock cycles Has cycle time or clock rate (inverses) –Ex. 500MHz or 2 ns This is the PERIOD of the clock (compare to duty cycle)

Fall 2001CS 4479 Relating the Metrics This is why a CPU clock rate doesn’t give a direct indication of CPU performance…

Fall 2001CS Example Our favorite program runs in 10 seconds on computer A, which has a 400 MHz clock. We are trying to help a computer designer build a machine, B, that will run this program in 6 seconds. The designer has determined that a substantial increase in the clock rate is possible, but this increase will affect the rest of the CPU design, causing machine B to require 1.2 times as many clock cycles as machine A for this program. What clock rate should we tell the designer to target?

Fall 2001CS Cycles per Instruction CPI = cycles per instruction –Average number of clock cycles to execute an instruction –For each architecture, different instructions take different amounts of clock cycles to execute –CPI provides one way of comparing two different implementations of the same instruction set architecture This is because in this case, the instruction count for any given program will be the same

Fall 2001CS Basic Peformance Equation (Revisited) Three key factors that affect performance –Instruction count –CPI –Clock cycle time

Fall 2001CS Considerations We get CPU execution time from running a program The clock cycle time is published Instruction count and CPI are more difficult to get –Why is it difficult to get the instruction count? Some processors actually keep track of this –CPI depends on I/O and memory system –We only need one of these

Fall 2001CS More Considerations Use this equation when there are different classes of instructions that require different numbers of clock cycles

Fall 2001CS Benchmarks Benchmarks are a set of programs that are used to evaluate a machine’s performance –Ex. SPEC95 int/fp benchmarks –Processor companies may target the hot code segments in the benchmarks for optimization in order to make their product look better

Fall 2001CS Amdahl’s Law for Improving Performance Suppose a program runs in 100 seconds on a machine, with multiply operations responsible for 80 seconds of this time How much do I have to improve the speed of multiplication if I want my program to run five times faster? Answer? Cannot be done! Amdahl’s Law dictates that we should make the common case fast… The opportunity for improvement is affected by how much time the event occurs

Fall 2001CS MIPS There are 3 problems with using MIPS as a measure for comparing machines –MIPS specifies the instruction execution rate but does not take into account the capabilities of the instructions Affects instruction count –MIPS varies between programs on the same computer! Depends on average CPI of the instruction mix –MIPS can vary inversely with performance! This occurs when CPI is higher on a machine with a higher MIPS