Puter Performance
Puter Performance
Computer Performance
Overview
• Performance evaluation
• Limitations
• Metrics
• Processor performance equation
• Performance evaluation reports
• Amdahl’s law
Performance Evaluation
Program
Compiler
ISA
Microarchitecture
Hardware
Manufacturing
Performance Evaluation Concepts
• Computer performance evaluation is based on:
– Throughput (bits per second)
– Response time (a.k.a. execution time, elapsed time)
• Component- and system-level performance
• Processor performance evaluation
– Based on execution time of a program:
PerformanceX = 1/ Execution timeX
Relative performance: n = PerformanceX / PerformanceY
n > 1 => X is n times faster than Y
• Terminology
– Improve performance = increase performance
– Improve execution time = decrease execution time
Example
• Impact on throughput and response time of:
– Using a faster processor
• Decrease in response time
• Increase in throughput
– Adding more processors to a system
• Increase in throughput
• Decrease in response time (if overhead is low)
– In Massively Parallel Processors (MPP)
– In Symmetric Multiprocessing Processors (SMP)
» Only if additional processors reduce queue time
Measuring Performance
Components of the execution time of a program:
1. CPU execution time
• User CPU time
• System CPU time
2. I/O time
3. Time spent running other programs
Unix time command 9.7u = 9.7 sec User CPU time
time cc prog.c 1.5s = 1.5 sec System CPU time
9.7u 1.5s 20 56% 20 = Total Elapsed Time
56% = Percent CPU time
CPU Performance Equation
• CPU time = CPU clock cycles * cycle time
= CPU clock cycles / clock rate
– CPU clock cycles = IC * CPI
• IC: instruction count (number of instructions per program)
• CPI: average cycles per instruction
Compiler
ISA
Microarchitecture
Hardware
F1
F2
1
Speedup =
(1 - fraction enhanced) + (fraction enhanced/factor of improvement)
Example
• A program runs in 10 seconds
• What is the speedup after a faster floating
point unit is incorporated?
Speedup
Speedup = 1.9
5
(1 – Fraction FP) + FractionFP 1.8
4 5 1.7
1.6
3 1.5 1
Speedup =
1.4 0.5
2
1.3 0.5 + FP factor of improvement
1 1.2
Fraction of FP 1.1 FP Unit im provem ent
0 1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Conclusions