Beruflich Dokumente
Kultur Dokumente
Page 1
Before we start...
To have a meaningful discussion
about modern architectures
Must discuss metrics to evaluate them
Discuss how metrics are impacted by Moores Law
Empirical Evaluation
Metrics
Performance
Page 2
Cost
Power
Reliability
Basis for
Design decisions
Purchasing decisions
Performance
Performance metrics
Latency
Throughput
Reporting performance
Benchmarking and averaging
CPU performance equation and
performance trends
Two definitions
Latency (execution time):
Throughput (bandwidth):
Page 3
Latency/Throughput Example
Example: move people from A to B, 10 miles
Car: capacity = 5, speed = 60 miles/hour
Bus: capacity = 60, speed = 20 miles/hour
Latency:
Throughput:
Performance Improvement
Processor A is X times faster than processor B if
Latency(P,A) =
Throughput(P,A) =
Latency(P,A) =
Page 4
Throughput(P,A) =
Car/bus example
Latency?
Throughput?
What Is P in Latency(P,A)?
Program
Latency(A) makes no sense, processor executes
some program
But which one?
Page 5
Throughput(P1+P2,A) =
2 / [(1/ Throughput(P1,A)) + (1/ Throughput(P2,A))]
Page 6
Instructions / program:
Cycles / instruction:
Seconds / cycle:
Page 7
CPI Example
A program executes equal integer, FP, and
memory operations
Cycles per instruction type:
integer = 1, memory = 2, FP = 3
Measuring CPI
How are CPI & execution-time actually measured?
Page 8
CPI breakdowns
Hardware event counters
Calculate CPI using counter frequencies/event costs
Cycle-level micro-architecture simulation (e.g., SimpleScalar)
+ Measures breakdown exactly provided
+ Models micro-architecture faithfully
+ Runs realistic workloads (some)
Improving CPI
Compute CPI
Base =
A=
B=
CPI Example 3
Operation
Frequency
Cycles
ALU
45%
Load
20%
Store
15%
Branch
20%
Page 9
Page 10
Old CPI =
New CPI =
Speedup = Old time/New time
Page 11
# CPUs
1
Time
# CPUs
1
Time
Speed-up =
Page 12
16
64
14
56
12
48
10
40
32
24
16
0
0
10
12
14
16
16
24
32
40
48
56
64
Summary
Latency = seconds/program =
(instructions/program) * (cycles/instruction) * (seconds/cycle)
Cycles/instruction: CPI
Page 13
Other Metrics
Will (try to) come back to
Cost
Power
Reliability