Lecture - 4 - Performance
Lecture - 4 - Performance
Instructor: Sumesh T A
Department of Computer Science &
Engineering
NIT Calicut
Kerala, India
COMPUTER ORGANIZATION AND DESIGN 5th
The Hardware/Software Interface Edition
Chapter 1
Performance
When trying to choose among different computers,
performance is an important attribute.
You could define the fastest plane as the one with the highest
cruising speed, taking a single passenger from one point to another
in the least time
BAC/Sud BAC/Sud
Concorde Concorde
Douglas Douglas DC-
DC-8- 8-50
50
0 500 1000 1500 0 100000 200000 300000 400000
Clock (cycles)
Clock Cycles n
CPI CPIi Instruction Count i
Instruction
i1 Instruction Count
Count
Relative frequency
Sequence 1: IC = 5 Sequence 2: IC = 6
Clock Cycles Clock Cycles
= 2×1 + 1×2 + 2×3 = 4×1 + 1×2 + 1×3
= 10 =9
Avg. CPI = 10/5 = 2.0 Avg. CPI = 9/6 = 1.5
Chapter 1 — Computer Abstractions and Technology — 21
The performance of a program depends on the algorithm, the
language, the compiler, the architecture, and the actual hardware.
IPC
Performance depends on
Algorithm: affects IC, possibly CPI
Programming language: affects IC, CPI
Compiler: affects IC, CPI
Instruction set architecture: affects IC, CPI, Tc
Chapter 1 — Computer Abstractions and Technology — 24
§1.7 The Power Wall
Power Trends
Clock rate and Power for Intel x86 microprocessors over eight generations
In CMOS IC technology
Power Capacitive load Voltage 2
Frequency
×30 5V → 1V ×1000
Hard to do (Why?)
Programming for performance
Load balancing