CS170 Computer Organization and Architecture I - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

CS170 Computer Organization and Architecture I

Description:

CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture 6: 9/12/2002 Outline Measuring ... – PowerPoint PPT presentation

Number of Views:8
Avg rating:3.0/5.0
Slides: 8
Provided by: ODU5
Learn more at: https://www.cs.odu.edu
Category:

less

Transcript and Presenter's Notes

Title: CS170 Computer Organization and Architecture I


1
CS170 Computer Organization and Architecture I
Ayman Abdel-Hamid Department of Computer
Science Old Dominion University Lecture 6
9/12/2002
2
Outline
  • Measuring Performance

3
Measuring Performance1/5
CPU clock cycles Instructions for a program
CPI CPU time CPU clock cycles clock cycle
time
CPU time Instruction count CPI clock cycle
time CPU time Instruction count CPI/clock rate
4
Measuring Performance2/5
  • How to determine values of performance
    components
  • CPU execution time measurement
  • Clock cycle time published as part of
    documentation for a machine
  • Instruction count
  • Software tools to profile execution, or use a
    simulator of the architecture
  • Hardware counters if available to measure the
    of instructions executed
  • CPI varies by application , as well as among
    implementations within the same instruction set.
    Obtained through a detailed simulation or by
    combining HW counters and simulation

CPI Can be calculated if different types of
instructions and individual clock cycle counts
are known
5
Measuring Performance3/5
Ci number of instructions of class i
executed CPIi average number of cycles per
instruction for that instruction class n number
of instruction classes
  • Overall program CPI dependent on
  • Number of cycles for each instruction type
  • Frequency of each instruction type in the program
    execution

Example page 64
6
Measuring Performance4/5
CPU time CPU clock cycles clock cycle
time CPU time CPU clock cycles for a program /
clock rate
CPU clock cycles Instructions for a program
CPI
CPU time Instruction count CPI clock cycle
time CPU time Instruction count CPI/clock rate
7
Measuring Performance5/5
Exercise 2.1, 2.2, 2.3 Exercise 2.10
Write a Comment
User Comments (0)
About PowerShow.com