LEC 2
LEC 2
Performance Issues
+
Designing for Performance
n The cost of computer systems continues to drop dramatically, while the performance
and capacity of those systems continue to rise equally dramatically
n Today’s laptops have the computing power of an IBM mainframe from 10 or 15 years
ago
components
Reduce the frequency
of memory access by
n Architectural examples incorporating
include: increasingly complex
and efficient cache
structures between
the processor and
main memory
Increase the
Change the DRAM
interconnect
interface to make it
bandwidth between
more efficient by
processors and
including a cache or
memory by using
other buffering
higher speed buses
scheme on the DRAM
and a hierarchy of
chip
buses to buffer and
structure data flow
+
2/19/2025
+
Relative Performance
+
Measuring Execution Time
+
Execution Time and CPU Clocking
+
CPU Time
+
EXAMPLE
To run the program in 6 seconds, B must have twice the clock rate of
A.
+
Instruction Count and CPI
Clock Cycles per Instruction (CPI)
• Instructions take different number of cycles to execute
– Multiplication takes more time than addition
– Floating point operations take longer than integer ones
– Accessing memory takes more time than accessing registers
• CPI is an average number of clock cycles per instruction
I1 I2 I3 I4 I5 I6 I7 CPI = 14/7 = 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 cycles
• Important point
Changing the cycle time often changes the number of cycles required
for various instructions (more later)
13
+
CPI Example
+
CPI in More Detail
Performance Equation
• To execute, a given program will require …
– Some number of machine instructions
– Some number of clock cycles
– Some number of seconds
• We can relate CPU clock cycles to instruction count
CPU cycles = Instruction Count × CPI
Program Compiler
Physical Design
architecture (Scheduling)
Circuit
compiler (ISA) Organization (uArch)
Designers
Microarchitects
16
Understanding Performance Equation
Time = Instruction Count × CPI × cycle time
f = 0 .9 0
+ f = 0 .7 5
f = 0 .5
Nu m be r of P roc e s s ors
2/19/2025
+
Benchmark Principles
n SPEC
n An industry consortium
n Defines and maintains the best known collection of benchmark
suites aimed at evaluating computer systems
n Performance measurements are widely used for comparison and
research purposes
+ n Best known SPEC benchmark suite