CS/ECE 3330 Computer Architecture Chapter 1 Performance / Power.

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.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Chapter 1 CSF 2009 Computer Performance. Defining Performance Which airplane has the best performance? Chapter 1 — Computer Abstractions and Technology.
Lec 2 Aug 31 review of lec 1 continue Ch 1 course overview performance measures Ch 1 exercises quiz 1.
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.
ECE 15B Computer Organization Spring 2010 Dmitri Strukov Lecture 3: Arithmetic Instructions Partially adapted from Computer Organization and Design, 4.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
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
Lecture 3: Computer Performance
Introduction to Computer Architecture SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING SUMMER 2015 RAMYAR SAEEDI.
Chapter 1 Section 1.4 Dr. Iyad F. Jafar Evaluating Performance.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
CS 161 Spring 2009Course administration Instructor: Laxmi N. Bhuyan Office: 351 Engg. 2 Website:
1 Computer Performance: Metrics, Measurement, & Evaluation.
CS Computer Architecture Fall 2009 Lecture 01: Introduction Dr. Angela Guercio ( Course.
Chapter 1 Computer Abstractions and Technology Part II.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
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.
Lecture 1: Performance EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2013, Dr. Rozier.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
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.
Chapter 1 — Computer Abstractions and Technology — 1 Understanding Performance Algorithm Determines number of operations executed Programming language,
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
1 CS/COE0447 Computer Organization & Assembly Language CHAPTER 4 Assessing and Understanding Performance.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
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.
Morgan Kaufmann Publishers
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
CSE2021: Computer Organization Instructor: Dr. Amir Asif Department of Computer Science York University Handout # 2: Measuring Performance Topics: 1. Performance:
1  1998 Morgan Kaufmann Publishers How to measure, report, and summarize performance (suorituskyky, tehokkuus)? What factors determine the 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.
EGRE 426 Computer Organization and Design Chapter 4.
Chapter 1 — Computer Abstractions and Technology — 1 Uniprocessor Performance Constrained by power, instruction-level parallelism, memory latency.
Introduction Computer Organization Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture
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.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Modified by S. J. Fritz Spring 2009 (1) Based on slides from D. Patterson and www-inst.eecs.berkeley.edu/~cs152/ COM 249 – Computer Organization and Assembly.
Chapter 1 Performance & Technology Trends. Outline What is computer architecture? Performance What is performance: latency (response time), throughput.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Lecture 3. Performance Prof. Taeweon Suh Computer Science & Engineering Korea University COSE222, COMP212, CYDF210 Computer Architecture.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
Computer Architecture & Operations I
Morgan Kaufmann Publishers Technology Trends and Performance
Measuring Performance II and Logic Design
Computer Architecture & Operations I
Computer Architecture & Operations I
CS161 – Design and Architecture of Computer Systems
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
Morgan Kaufmann Publishers Computer Abstractions and Technology
Defining Performance Which airplane has the best performance?
Computer Architecture & Operations I
Uniprocessor Performance
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers Computer Abstractions and Technology
CSCE 212 Chapter 4: Assessing and Understanding Performance
Chapter 1 Computer Abstractions & Technology Performance Evaluation
Morgan Kaufmann Publishers Computer Performance
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CS161 – Design and Architecture of Computer Systems
Presentation transcript:

CS/ECE 3330 Computer Architecture Chapter 1 Performance / Power

CS/ECE 3330 – Fall 2009 Overview of computer architecture Low-level software High-level hardware The interface between the two (ISA) What’s new and cool Multicore and heterogeneity Power, temperature, reliability Logistics Ben Kreuter Wed Michelle McDaniel Thu Last Time 1

CS/ECE 3330 – Fall 2009 What does it mean to have better performance? Class Survey 2

CS/ECE 3330 – Fall 2009 Defining Performance Which airplane has the best performance? 3

CS/ECE 3330 – Fall 2009 Response Time and Throughput Response time (execution time) How long it takes to do a task Throughput (bandwidth) Total work done per unit time –e.g., tasks/transactions/… per hour How are response time and throughput affected By replacing the processor with a faster version? By adding more processors? We’ll focus on response time for now… 4

CS/ECE 3330 – Fall 2009 Relative Performance Define Performance = 1/Execution Time “X is n time faster than Y” Example: time taken to run a program 20s on A, 30s on B So A is times faster than B 5 Execution Time B / Execution Time A = 30s / 20s =

CS/ECE 3330 – Fall 2009 Measuring Execution Time Elapsed time Total response time, including all aspects –Processing, I/O, OS overhead, idle time Determines system performance CPU time Time spent processing a given job –Discounts I/O time, other jobs’ shares Comprises user CPU time and system CPU time Different programs are affected differently by CPU and system performance 6

CS/ECE 3330 – Fall 2009 CPU Clocking Operation of digital hardware governed by a constant-rate clock Clock (cycles) Data transfer and computation Update state Clock period Clock period: duration of a clock cycle e.g., 250ps = 0.25ns = 250×10 –12 s Clock frequency (rate): cycles per second e.g., 4.0GHz = 4000MHz = 4.0×10 9 Hz 7

CS/ECE 3330 – Fall 2009 CPU Time Performance improved by Reducing number of clock cycles Increasing clock rate Hardware designer must often trade off clock rate against cycle count 8

CS/ECE 3330 – Fall 2009 CPU Time Example Computer A: 2GHz clock, 20s CPU time Designing Computer B Aim for 12s CPU time Can do faster clock, but causes 1.2 × clock cycles How fast must Computer B’s clock be? 9

CS/ECE 3330 – Fall 2009 Instruction Count and CPI Instruction Count for a program Determined by program, ISA and compiler Average cycles per instruction Determined by CPU hardware If different instructions have different CPI –Average CPI affected by instruction mix 10

CS/ECE 3330 – Fall 2009 CPI Example Computer A: Cycle Time = 300ps, CPI = 2.0 Computer B: Cycle Time = 600ps, CPI = 1.4 Same ISA Which is faster, and by how much? A is faster… …by this much 11

CS/ECE 3330 – Fall 2009 CPI in More Detail If different instruction classes take different numbers of cycles Weighted average CPI Relative frequency 12

CS/ECE 3330 – Fall 2009 CPI Example Alternative compiled code sequences using instructions in classes A, B, C ClassABC CPI for class123 IC in sequence 1424 IC in sequence 2822 Sequence 1: IC = 10 Clock Cycles = 4×1 + 2×2 + 4×3 = 20 Avg CPI= 20/10 = 2.0 Sequence 2: IC =12 Clock Cycles = 8×1 + 2×2 + 2×3 = 18 Avg CPI= 18/12 =

CS/ECE 3330 – Fall 2009 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, T c 14

CS/ECE 3330 – Fall 2009 Pitfall: Amdahl’s Law Improving an aspect of a computer and expecting a proportional improvement in overall performance Can’t be done! Example: multiply accounts for 80s/100s How much improvement in multiply performance to get 5× overall? Corollary: make the common case fast 15

CS/ECE 3330 – Fall Real applications 2.Modified applications 3.Kernels (small, critical parts of real applications) 4.Toy benchmarks 5.Synthetic benchmarks Benchmarking Accuracy

CS/ECE 3330 – Fall 2009 SPEC CPU Benchmarks 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) 17

CS/ECE 3330 – Fall 2009 CINT2006 for Opteron X NameDescriptionIC×10 9 CPITc (ns)Exec timeRef timeSPECratio perlInterpreted string processing2, , bzip2Block-sorting compression2, , gccGNU C Compiler1, , mcfCombinatorial optimization ,3459, goGo game (AI)1, , hmmerSearch gene sequence2, , sjengChess game (AI)2, , libquantumQuantum computer simulation1, ,04720, h264avcVideo compression3, , omnetppDiscrete event simulation , astarGames/path finding1, , xalancbmkXML parsing1, ,1436, Geometric mean11.7 High cache miss rates 18

CS/ECE 3330 – Fall 2009 Performance can be measured a number of ways Know the ways, and the potential misconceptions Mostly boils down to the “standard performance equation” Next Time… Power has become a limiting factor First problem set is due (2PM) Summary 19