Lecture 2b: Performance Metrics. Performance Metrics Measurable characteristics of a computer system: Count of an event Duration of a time interval Size.

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
Measures of Dispersion
Computer Performance CS350 Term Project-Spring 2001 Elizabeth Cramer Bryan Driskell Yassaman Shayesteh.
Copyright 2004 David J. Lilja1 Performance metrics What is a performance metric? Characteristics of good metrics Standard processor and system metrics.
Copyright 2004 David J. Lilja1 What Do All of These Means Mean? Indices of central tendency Sample mean Median Mode Other means Arithmetic Harmonic Geometric.
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.
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 摩爾定律.
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
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.
CPU Performance Assessment As-Bahiya Abu-Samra *Moore’s Law *Clock Speed *Instruction Execution Rate - MIPS - MFLOPS *SPEC Speed Metric *Amdahl’s.
Performance & Benchmarking. What Matters? Which airplane has best performance:
Summarizing Data Chapter 12.
Computer Organization and Design Performance Montek Singh Mon, April 4, 2011 Lecture 13.
1 Computer Performance: Metrics, Measurement, & Evaluation.
1 Interconnects Shared address space and message passing computers can be constructed by connecting processors and memory unit using a variety of interconnection.
© Copyright McGraw-Hill CHAPTER 3 Data Description.
Memory/Storage Architecture Lab Computer Architecture Performance.
Lecture 2: Performance Measurement
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.
Chapter 12.  When dealing with measurement or simulation, a careful experiment design and data analysis are essential for reducing costs and drawing.
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.
CPE 619 Summarizing Measured Data Aleksandar Milenković The LaCASA Laboratory Electrical and Computer Engineering Department The University of Alabama.
Measures of Central Tendency And Spread Understand the terms mean, median, mode, range, standard deviation.
Computer Organization and Architecture Tutorial 1 Kenneth Lee.
1. 2 Table 4.1 Key characteristics of six passenger aircraft: all figures are approximate; some relate to a specific model/configuration of the aircraft.
1 Seoul National University Performance. 2 Performance Example Seoul National University Sonata Boeing 727 Speed 100 km/h 1000km/h Seoul to Pusan 10 hours.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CEN 316 Computer Organization and Design Assessing and Understanding Performance Mansour AL Zuair.
1  1998 Morgan Kaufmann Publishers How to measure, report, and summarize performance (suorituskyky, tehokkuus)? What factors determine the performance.
Performance Performance
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.
Performance Computer Organization II 1 Computer Science Dept Va Tech January 2009 © McQuain & Ribbens Defining Performance Which airplane has.
CSE 340 Computer Architecture Summer 2016 Understanding Performance.
Lecture 3. Performance Prof. Taeweon Suh Computer Science & Engineering Korea University COSE222, COMP212, CYDF210 Computer Architecture.
BITS Pilani, Pilani Campus Today’s Agenda Role of Performance.
Measuring Performance II and Logic Design
Statistical Methods Michael J. Watts
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
September 2 Performance Read 3.1 through 3.4 for Tuesday
Statistical Methods Michael J. Watts
Defining Performance Which airplane has the best performance?
Measures of Central Tendency
CSCE 212 Chapter 4: Assessing and Understanding Performance
CS2100 Computer Organisation
Performance of computer systems
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:

Lecture 2b: Performance Metrics

Performance Metrics Measurable characteristics of a computer system: Count of an event Duration of a time interval Size of a parameter Rate: Operations executed per second

Performance Mertrics Clock Speed Clock speed/frequency (f): the rate of clock pulses (ex: 1GHz) Cycle time (T c ): time between two clock pulses (T c = 1/f) TcTc

Performance Mertrics Instruction Execution Rate Cycles per Instruction (CPI): is an average depends on the design of micro-architecture (hardwired/microprogrammed, pipelined) Number of instructions: is the number of instructions executed at runtime Depends on instruction set architecture (ISA) compiler CPI = CPI i : number of cycles required for instruction i I i : number of executed instructions of type i

Performance Metrics CPU Performance CPU time of a program (T) = instructions x cycles x time program instruction cycle CPI (cycles per instruction) T = instruction count x CPI x 1 f

Performance Metrics CPU Performance Drawbacks: In modern computers, no program runs without some operating system running on the hardware Comparing performance between machines with different operating systems will be unfair

Performance Metrics Execution time Elapsed time / wall-clock time / response time Latency to complete a task, including disk access, memory access, I/O, operating system overhead, and everything (includes time consumed by other programs in a time-sharing system) CPU time The time CPU is computing, not including I/O time or waiting time User time / user CPU time CPU time spent in the program System time / system CPU time CPU time spent in the operating system performing tasks requested by the program

Performance Metrics Performance Comparison Relative performance Performance x = 1. Execution time X Performance Ratio = Performance X = Execution time Y Performance Y Execution time X

Performance Metrics Relative Performance If workload consists of more than one program, total execution time may be used. If there are more than one machine to be compared, one of them must be selected as a reference.

Performance Metrics Throughput Total amount of work done in a given time Measured in tasks per time unit Can be used for Operating system performance Pipeline performance Multiprocessor performance

Performance Metrics MIPS (Million instructions per second) Includes both integer and floating point performance Number of instructions in a program varies between different computers Number of instructions varies between different programs on the same computer MIPS = Instruction count = Clock rate Execution time x 10 6 CPI x 10 6

Performance Metrics MFLOPS (Million floating point operations per second) Give performance of only floating-point operations Different mixes of integer and floating-point operations may have different execution times: Integer and floating-point units work independently Instruction and data caches provide instruction and data concurrently

Performance Metrics Utilization Speciality ratio 1  general purpose Utilization = Busy time. Total time Speciality ratio = Maximum performance. Minimum performance

Performance Metrics Asymptotic and Half performance r  – asymptotic performance n 1/2 – half performance T = r  (n + n 1/2 ) r  = 1/t n 1/2 = t 0 /t Slope = r  -1 t0t0 -n 1/2 n 1/2 2t 0

Performance Metrics Speedup Express how much faster is system 2 than system 1 Calculated directly from execution time Performance x = 1 = 1 Execution time X T X Speedup 2,1 = Performance 2 = T 1 Performance 1 T 2

Performance Metrics Relative Change It expresses the performance of system 2 relative to system 1 Performance x = 1 = 1 Execution time X T X Relative change 2,1 = Performance 2 - Performance 1 = T 1 - T 2 = Speedup 2,1 - 1 Performance 1 T 2

Performance Metrics Statistical Analysis Used to compare performance Workload consists of many programs Depends on the nature of the data as well as distribution of the test results

Performance Metrics Indices of Central Tendency Used to summarize multiple measurements Mean Median Mode

Performance Metrics Mean (average) Gives equal weight to all measurements Arithmetic mean =  x i, 1 ≤ i ≤ n n MeasurementExecution time X110 X220 X315 X418 X516 Mean15.8

Performance Metrics Median 1. Order all n measurements 2. The middle value is the median. If n is even, median is the mean of the middle 2 values Using Median instead of Mean reduces the skewing effect of the outliers. MeasurementExecution time X110 X220 X315 X418 X516 X6200 Mean46.5 MeasurementExecution time X110 X315 X516 X418 X220 X6200 Median = = 17

Performance Metrics Mode Mode is the value that occurs most frequently If all values occur once, there is no mode If there are several samples that all have the same value, there would be several modes MeasurementExecution time X110 X220 X336 X420 X520 X620 Mode = 20

Mean, Median, Mode Mean Incorporates information from the entire measured values Sensitive to outliers Median and Mode Less sensitive to outliers Do not effectively use all information ex

Performance Metrics Arithmetic mean (average) May be misleading if the data are skewed or scattered Arithmetic mean =  x i, 1 ≤ i ≤ n n MAMA MBMB MCMC Prog Prog Prog Average2000

Performance Metrics Weighted average weight is the frequency of each program in daily processing Results may change with a different set of execution frequencies Weighted average = ∑ w i. x i 1 ≤ i ≤ n weightMAMA MBMB MCMC Prog160% Prog230% Prog310% Average

Performance Metrics Geometric mean Results are stated in relation to the performance of a reference machine Geometric mean = (  x i ) 1/n, 1 ≤ i ≤ n MAMA Normalized to M A M B (reference) Normalized to M B MCMC Normalized to M C Prog Prog Prog Average Results are consistent no matter which system is chosen as reference

Performance Metrics Harmonic mean Used to compare performance results that are expressed as a rate (e.g. operations per second, throughput, etc.) Slowest rates have the greatest influence on the result  It identifies areas where performance can be improved Harmonic mean = n, 1 ≤ i ≤ n ∑ 1/x i

Performance Metrics Characteristics of a good performance metric If the time values are averaged, then the resulting mean value must be directly proportional to the total time. If the rate values are averaged, then the resulting mean value must be inversely proportional to the total time.

Performance Metrics Ex n benchmark programs T i is the execution time of program i F floating-point operations in each program M i = F / T i is the execution rate of program i (MFLOP/s) Arithmetic mean Inappropriate for summarizing rates T A = T A is directly proportional to the total execution time M A = = M A is inversely proportional to the total execution time

Performance Metrics Harmonic mean Inappropriate for summarizing execution times Appropriate for summarizing rates T H = T H is not directly proportional to the total execution time M H = = M H is inversely proportional to the total execution time

Performance Metrics Ex

Performance Metrics Geometric mean Inappropriate for summarizing execution times Inappropriate for summarizing rates T G = T G is not directly proportional to the total execution time M H = = M H is not inversely proportional to the total execution time

Performance Metrics Geometric mean Produces a consistent ordering of the systems but it is the wrong ordering M1M2M3 Prog Prog28370 Prog Prog Prog Geometric mean (Normalized wrt S1) Geometric mean (Normalized wrt S2) Rank321 Total time Arithmetic mean Rank213

Performance Metrics Histogram Used to display the distribution of a set of measured values (variability) First find the minimum and maximum values. Then divide the range into b subranges, called cells.

Histogram Message size (kbytes) Network ANetwork B 0 < xi ≤ < xi ≤ < xi ≤ < xi ≤ < xi ≤ < xi ≤ < xi ≤ 3540

Performance Metrics Index of Dispersion Index of dispersion is used to compare the spread of measurements around the mean value Range is the simplest metric for an index of dispersion Range is sensitive to a few extreme values

Performance Metrics Index of Dispersion Maximum of the absolute values of the difference of each measurement from the mean It is also sensitive to extreme values

Performance Metrics Index of Dispersion Sample variance is the simplest metric for an index of dispersion Requires 2 passes through the data to calculate first x and then s 2 Requires 1 pass

Performance Metrics Index of Dispersion Standard deviation Coefficient of variance (COV): normalizes standard deviation wrt the mean