CDA 3101 Discussion Section 08 Performance

Slides:



Advertisements
Similar presentations
Morgan Kaufmann Publishers Mario Côrtes - MO401 - IC/Unicamp- 2002s1 Our favorite program runs in 10 seconds on computer A, which has a 400 Mhz.
Advertisements

2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt Time Money AdditionSubtraction.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
1 Lecture 2: Metrics to Evaluate Performance Topics: Benchmark suites, Performance equation, Summarizing performance with AM, GM, HM Video 1: Using AM.
CMSC 611: Advanced Computer Architecture Performance Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Adding Up In Chunks.
Distribution and like terms A look at the algebra behind algebra tiles….
Section 4.2 Operations with Functions Section 4.2 Operations with Functions.
CDA 3101 Fall 2010 Discussion Section 08 CPU Performance
Computer Organization Lab 1 Soufiane berouel. Formulas to Remember CPU Time = CPU Clock Cycles x Clock Cycle Time CPU Clock Cycles = Instruction Count.
Performance of Cache Memory
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.
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.
CIS429.S00: Lec3 - 1 CPU Time Analysis Terminology IC = instruction count = number of instructions in the program CPI = cycles per instruction (varies.
Performance D. A. Patterson and J. L. Hennessey, Computer Organization & Design: The Hardware Software Interface, Morgan Kauffman, second edition 1998.
9/16/2004Comp 120 Fall September 16 Assignment 4 due date pushed back to 23 rd, better start anywayAssignment 4 due date pushed back to 23 rd, better.
Computer ArchitectureFall 2007 © September 17, 2007 Karem Sakallah CS-447– Computer Architecture.
Assessing and Understanding Performance B. Ramamurthy Chapter 4.
Chapter 4 Assessing and Understanding Performance
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
Amdahl's Law.
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.
Chapter 1 Section 1.4 Dr. Iyad F. Jafar Evaluating Performance.
Ch4b- 2 EE/CS/CPE Computer Organization  Seattle Pacific University Performance metrics I’m concerned with how long it takes to run my program.
Lecture 1: Performance EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2013, Dr. Rozier.
Operation Frequency No. of Clock cycles ALU ops % 1 Loads 25% 2
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.
CDA 3101 Discussion Section 09 CPU Performance. Question 1 Suppose you wish to run a program P with 7.5 * 10 9 instructions on a 5GHz machine with a CPI.
Computer Organization and Architecture Tutorial 1 Kenneth Lee.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
Ch4a- 2 EE/CS/CPE Computer Organization  Seattle Pacific University Performance What differences do we see in performance? Almost all computers.
Morgan Kaufmann Publishers
CPU Performance using Different Parameters CS 250: Andrei D. Coronel, MS,CEH,PhD Cand.
Performance Enhancement. Performance Enhancement Calculations: Amdahl's Law The performance enhancement possible due to a given design improvement is.
CS /02 Semester II Help Session IIA Performance Measures Colin Tan S
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.
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.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
CSE 340 Computer Architecture Summer 2016 Understanding Performance.
Performance 9 ways to fool the public #1 – Reporting Results.
Performance. Moore's Law Moore's Law Related Curves.
Measuring Performance II and Logic Design
Compilers can have a profound impact on the performance of an application on given a processor. This problem will explore the impact compilers have on.
Computer Architecture & Operations I
CS161 – Design and Architecture of Computer Systems
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
CS170 Computer Organization and Architecture I
September 24 Test 1 review More programming
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:

CDA 3101 Discussion Section 08 Performance

Question 1 – 4.7 Suppose you wish to run a program P with 7.5 * 109 instructions on a 5GHz machine with a CPI of 0.8. What is the expected CPU time? When you run P, it takes 3 seconds of wall clock time to complete. What is the percentage of the CPU time P received?

Question 1 The expected CPU time CPU Time = IC * CPI * Clock cycle time = 7.5 * 109 * 0.8 * 1/5*109 = 1.2seconds The percentage of the CPU time P 1.2seconds/3 seconds = 40%

Question 2 – 4.11 Consider program P, which runs on a 1 GHz machine M in 10 seconds. An optimization is made to P, replacing all instances of multiplying a value by 4 (mult X,X,4) with two instructions that set x to x + x twice(add X,X;add X,X). Call this new optimized program P’. The CPI of a multiply instruction is 4, and the CPI of an add is 1. After recompiling, the program now runs in 9 seconds on machine M. How many multiplies were replaced by the new compiler?

Question 2 The number of multiplies that were replaced the by new compiler Let Number of multiplies replaced in new compiler = X Number of cycles executed in the old compiler = 4X Number of cycles executed in new compiler = 2X Total number of cycles difference 4X-2X = 2X Total number of cycles difference between P and P’ = 1010 – 9*109 = 109 2X = 109 => X = 5* 108

Question 3 – 4.45 Assume that multiply instructions take 12 cycles and account for 15% of the instructions in a typical program, an the other 85% of the instructions require an average of 4 cycles for each instruction. What percentage of time does the CPU spend doing multiplication?

Question 3 CPU Time for multiply instructions CPU Time = IC * CPI * Clock cycle time = IC*0.15 * 12 * CC = 1.8*IC*CC CPU Time for all instructions = (IC*0.15*12 + IC*0.85*4)*CC = 5.2*IC*CC Percentage of time CPU spend doing multiplication 1.8*IC*CC/5.2*IC*CC = 34.6%

Question 4 – 4.46 Your hardware engineering team has indicated that it would be possible to reduce the number of cycles required for multiplication to 8 in Exercise 4.45, but this will require a 20% increase in the cycle time. Nothing else will be affected by the change. Should they proceed with the modification?

Question 4 CPU Time for original hardware CPU Time = IC * CPI * Clock cycle time = (IC*0.15*12 + IC*0.85*4)*CC = 5.2*IC*CC CPU Time for new hardware = (IC*0.15*8 + IC*0.85*4)*1.2CC = 5.52*IC*CC Comparing original and new hardware Performancenew/Performanceorg = 5.2*IC*CC/5.52*IC*CC = 0.942 Modification should not be made because it reduces performance