




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





October 19, 2006 Ryan Kastner Electrical and Computer Engineering University of California, Santa Barbara
Evaluating Cost, Performance, and Cost/Performance
Key characteristics of six passenger aircraft: all figures are approximate; some relate to a specific model/configuration of the aircraft or are averages of cited range of values.
DC-8-50^145 14 000^87580
Concorde 130 6 400 2 200 350
Boeing 777 375 7 450 980 180
Boeing 767^250 12 300^885120
Boeing 747^470 6 700^980200
Airbus A310^250 8 300^895120
Price ($M)
Speed (km/h)
Range Aircraft Passengers (km)
Performance from the viewpoint of a passenger: Speed
Note, however, that flight time is but one part of total travel time. Also, if the travel distance exceeds the range of a faster plane, a slower plane may be better due to not needing a refueling stop
Performance from the viewpoint of an airline: Throughput
Measured in passenger-km per hour (relevant if ticket price were proportional to distance traveled, which in reality is not) Airbus A310 250 × 895 = 0.224 M passenger-km/hr Boeing 747 470 × 980 = 0.461 M passenger-km/hr Boeing 767 250 × 885 = 0.221 M passenger-km/hr Boeing 777 375 × 980 = 0.368 M passenger-km/hr Concorde 130 × 2200 = 0.286 M passenger-km/hr DC-8-50 145 × 875 = 0.127 M passenger-km/hr
Performance from the viewpoint of FAA: Safety
Key characteristics of six passenger aircraft: all figures are approximate; some relate to a specific model/configuration of the aircraft or are averages of cited range of values.
DC-8-50 145 14 000 875 80
Concorde 130 6 400 2 200 350
B 777 375 7 450 980 180
B 767 250 12 300 885 120
B 747 470 6 700 980 200
A310 250 8 300 895 120
Price ($M)
Speed (km/h)
Range (km)
Passen- gers
Aircraft Cost / Performance 536 434 543 489 1224 630
Throughput (M P km/hr)
Smaller values better
Larger values better
“Night flight”
City map and clouds computed “on the fly” with fractals
CPU intensive Trivial I/O
Performance 1 Execution Time
= = 2.85 renders/hour
1.5 GHz PB (Y) is N times faster than 1.25 GHz PB (X). N is ?
N =
Performance (Y)
Execution Time (Y)
Execution Time (X) Performance (X)
= (^) = 1. 19
PB 1.5 Ghz : 3. 4 renders/hour. PB 1.25 : 2. renders/hour. Might make the difference in meeting a deadline ...
Execution Time: 1265 seconds
Power Book G 1.25 GHz
Execution Time: Time for 1 job to complete
Throughput: # of parallel jobs/hour completed
Could G5 and Opteron have similar Throughput? Why?
Assume G5 MP execution time faster because AE does not use both Opteron CPUs.
1.8x faster. Implies parallel code.
2 CPUs vs 1 CPU, otherwise similar
Count instructions in loop of small program Use simulator to count instructions Hardware counter in spec. register (most CPUs)
Calculate: Execution Time / Clock cycle time Instruction Count Hardware counter in special register (most CPUs)
Op Freqi CPI (^) i Prod (% Time) ALU 50% 1 .5 (33%) Load 20% 2 .4 (27%) Store 10% 2 .2 (13%) Branch 20% 2 .4 (27%)
Instruction Mix (Where time spent)
CPI
i = 1
n i i
i = 1
n
i i i^ i Instruction Count
"instruction frequency"
CPI = (CPU Time * Clock Rate) / Instruction Count = Clock Cycles / Instruction Count
“Average cycles per instruction”
Machine CPI
5 x 30 + 1 x 20 + 2 x 20 + 2 x 10 + 2 x 20
Program Instruction Mix
Where program spends its time
If enhancement “E” speeds up multiply, but other instructions are unchanged, what is the maximum speedup S?
Where program spends its time
1
Attributed to Gene Amdahl -- “Amdahl’s Law”
Must enhance computers in a balanced way!
Speedup due to enhancement E: ExTime w/o E Performance w/ E Speedup(E) = ------------- = ------------------- ExTime w/ E Performance w/o E Suppose that enhancement E accelerates a fraction F of the task by a factor S, and the remainder of the task is unaffected
Then Maximum benefit:
Speedupmaximum =
1 - Fractiontime (^) affected
Program We Wish To Run On N CPUs
The program spends 30% of its time running code that can not be recoded to run in parallel.
CPUs (^2 3 4 5) ∞
Speedup
Compute speedup for N = 2, 3, 4, 5, and ∞.
What Programs Measure for Comparison?
Called a “workload”; For example: Engineer uses compiler, spreadsheet Author uses word processor, drawing program, compression software
Don’t have access to machine to “benchmark” before purchase Don’t know workload in future
Example Standardized Workload Benchmarks
Workstations: Standard Performance Evaluation Corporation (SPEC) SPEC95: 8 integer (gcc, compress, li, ijpeg, perl, ...) & 10 floating-point (FP) programs (hydro2d, mgrid, applu, turbo3d, ...) SPEC2000: 11 integer (gcc, bzip2, …) , 18 FP (mgrid, swim, ma3d, …) www.spec.org Separate average for integer and FP Benchmarks distributed in source code Company representatives select workload Compiler, machine designers target benchmarks, so try to change every 3 years
Good benchmarks Good ways to summarize performance
Seconds
Program
Instructions Program =
Seconds Instruction Cycle
Cycles
Goal is to optimize execution time, not individual equation terms.
The CPI of the program. Reflects the program’s instruction mix.
Machines are optimized with respect to program workloads.
Clock period. Optimize jointly with machine CPI.
User Time: time user needs to wait for program to execute (multitasking affects) CPU Time: time spent executing a single program: (no multitasking)