Measuring Performance II and Logic Design

Slides:



Advertisements
Similar presentations
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Advertisements

Computer Abstractions and Technology
Power calculation for transistor operation What will cause power consumption to increase? CS2710 Computer Organization1.
TU/e Processor Design 5Z032 1 Processor Design 5Z032 The role of Performance Henk Corporaal Eindhoven University of Technology 2009.
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 D. A. Patterson and J. L. Hennessey, Computer Organization & Design: The Hardware Software Interface, Morgan Kauffman, second edition 1998.
CS/ECE 3330 Computer Architecture Chapter 1 Performance / Power.
EET 4250: Chapter 1 Performance Measurement, Instruction Count & CPI Acknowledgements: Some slides and lecture notes for this course adapted from Prof.
Chapter 4 Assessing and Understanding Performance
1 Chapter 4. 2 Measure, Report, and Summarize Make intelligent choices See through the marketing hype Key to understanding underlying organizational motivation.
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.
Chapter 1 Computer Abstractions and Technology Part II.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Chapter 1 - The Computer Revolution Chapter 1 — Computer Abstractions and Technology — 1  Progress in computer technology  Underpinned by Moore’s Law.
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.
1 CS/EE 362 Hardware Fundamentals Lecture 9 (Chapter 2: Hennessy and Patterson) Winter Quarter 1998 Chris Myers.
Chapter 1 — Computer Abstractions and Technology — 1 Understanding Performance Algorithm Determines number of operations executed Programming language,
From lecture slides for Computer Organization and Architecture: Designing for Performance, Eighth Edition, Prentice Hall, 2010 CS 211: Computer Architecture.
Lecture 8: 9/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 1 Performance & Technology Trends Read Sections 1.5, 1.6, and 1.8.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CEN 316 Computer Organization and Design Assessing and Understanding Performance Mansour AL Zuair.
Chapter 1 Technology Trends and Performance. Chapter 1 — Computer Abstractions and Technology — 2 Technology Trends Electronics technology continues to.
1  1998 Morgan Kaufmann Publishers How to measure, report, and summarize performance (suorituskyky, tehokkuus)? What factors determine the performance.
1  1998 Morgan Kaufmann Publishers Where we are headed Performance issues (Chapter 2) vocabulary and motivation A specific instruction set architecture.
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.
4. Performance 4.1 Introduction 4.2 CPU Performance and Its Factors
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /03/2013 Lecture 3: Computer Performance Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
Chapter 1 — Computer Abstractions and Technology — 1 Uniprocessor Performance Constrained by power, instruction-level parallelism, memory latency.
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.
Jan. 5, 2000Systems Architecture II1 Machine Organization (CS 570) Lecture 2: Performance Evaluation and Benchmarking * Jeremy R. Johnson Wed. Oct. 4,
Chapter 1 Performance & Technology Trends. Outline What is computer architecture? Performance What is performance: latency (response time), throughput.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface ARM Edition Chapter 1 Computer Abstractions and Technology.
Computer Architecture & Operations I
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Technology Trends and Performance
Morgan Kaufmann Publishers Computer Abstractions and Technology
Computer Architecture & Operations I
CS161 – Design and Architecture of Computer Systems
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
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Architecture
Defining Performance Which airplane has the best performance?
Xiang Lian The University of Texas-Pan American
Morgan Kaufmann Publishers Computer Abstractions and Technology
Uniprocessor Performance
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers Computer Abstractions and Technology
COSC 3406: Computer Organization
CSCE 212 Chapter 4: Assessing and Understanding Performance
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Chapter 1 Computer Abstractions & Technology Performance Evaluation
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CS161 – Design and Architecture of Computer Systems
Computer Abstractions and Technology
Presentation transcript:

Measuring Performance II and Logic Design Morgan Kaufmann Publishers November 26, 2017 Measuring Performance II and Logic Design Instructor: Robert Utterback Lecture 3 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 Performance Summary The BIG Picture Performance depends on Algorithm: affects IC, possibly CPI Programming language: affects IC, CPI Compiler: affects IC, CPI Instruction set architecture: affects IC, CPI, Tc Note that CPI differs for different instructions, so we need the average for a particular set of instructions. In this course we will assume the clock period is fixed, but I should note that in modern CPUs this is not necessarily the case. Recent CPUs will actually lower their clock speed when the machine isn't busy to save energy. Chapter 1 — Computer Abstractions and Technology — 2 Chapter 1 — Computer Abstractions and Technology

Review Three processors, same ISA: Each executes a program in 10s. How many cycles? How many instructions? P1 P2 P3 Clock rate 3 GHz 2.5 GHz 4.0 GHz CPI 1.5 1.0 2.2 Chapter 1 — Computer Abstractions and Technology — 3

Morgan Kaufmann Publishers November 26, 2017 SPEC CPU Benchmark Programs used to measure performance Supposedly typical of actual workload Standard Performance Evaluation Corp (SPEC) Develops benchmarks for CPU, I/O, Web, … SPEC CPU2006 Elapsed time to execute a selection of programs Negligible I/O, so focuses on CPU performance Normalize relative to reference machine Summarize as geometric mean of performance ratios CINT2006 (integer) and CFP2006 (floating-point) Section 1.9 In general, for units that are proportional to time (like latency or response time), use arithmetic mean. For unitless quantities (e.g. speedup ratios) use the geometric mean Chapter 1 — Computer Abstractions and Technology — 4 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 CINT2006 for Intel Core i7 920 Notice the high CPI values in some of the benchmarks. This is typically because of high cache miss rates. Chapter 1 — Computer Abstractions and Technology — 5 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 SPEC Power Benchmark Power consumption of server at different workload levels Performance: ssj_ops/sec Power: Watts (Joules/sec) Chapter 1 — Computer Abstractions and Technology — 6 Chapter 1 — Computer Abstractions and Technology

SPECpower_ssj2008 for Xeon X5650 Morgan Kaufmann Publishers November 26, 2017 SPECpower_ssj2008 for Xeon X5650 Chapter 1 — Computer Abstractions and Technology — 7 Chapter 1 — Computer Abstractions and Technology

Fallacy: Low Power at Idle Morgan Kaufmann Publishers November 26, 2017 Fallacy: Low Power at Idle Look back at i7 power benchmark At 100% load: 258W At 50% load: 170W (66%) At 10% load: 121W (47%) Google data center Mostly operates at 10% – 50% load At 100% load less than 1% of the time Consider designing processors to make power proportional to load Chapter 1 — Computer Abstractions and Technology — 8 Chapter 1 — Computer Abstractions and Technology

Pitfall: MIPS as a Performance Metric Morgan Kaufmann Publishers November 26, 2017 Pitfall: MIPS as a Performance Metric MIPS: Millions of Instructions Per Second Doesn’t account for Differences in ISAs between computers Differences in complexity between instructions Big picture: execution time is the only measure of performance that is always valid. Sometimes other metrics are valid in a limited context, but it is an error to use them beyond that context. CPI varies between programs on a given CPU Chapter 1 — Computer Abstractions and Technology — 9 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 Pitfall: Amdahl’s Law Improving an aspect of a computer and expecting a proportional improvement in overall performance §1.10 Fallacies and Pitfalls Section 1.10 A pitfall to expect that performance improvement, but Amdahl's law itself is actually a really useful tool. Chapter 1 — Computer Abstractions and Technology — 10 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 Pitfall: Amdahl’s Law Improving an aspect of a computer and expecting a proportional improvement in overall performance §1.10 Fallacies and Pitfalls Example: A program runs for 100 s. 80 s are due to multiplication instructions. How much do we need to improve the multiply to achieve 2x performance? Section 1.10 Example: a program runs 100 s, with multiply operations accounting for 80 s of the time Basically law of diminishing returns Chapter 1 — Computer Abstractions and Technology — 11 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 Amdahl’s Law Example: A program runs for 100 seconds. Of the 100 seconds, 80 seconds are due to multiplies. 2x improvement: n = 2.66 3x improvement: n = 6 4x improvement: n = 16 5x improvement: n = ? Can’t be done! Also used for calculating how much improvement you can get when writing a parallel program. Corollary: make the common case fast Chapter 1 — Computer Abstractions and Technology — 12 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers November 26, 2017 Concluding Remarks Cost/performance is improving Due to underlying technology development Hierarchical layers of abstraction In both hardware and software Instruction set architecture The hardware/software interface Execution time: the best performance measure Power is a limiting factor Use parallelism to improve performance §1.9 Concluding Remarks Section 1.11 Chapter 1 — Computer Abstractions and Technology — 13 Chapter 1 — Computer Abstractions and Technology

What I want you to do Finish Chapter 1 Read Appendix B.1-B.3 Work on homework 1