Professional Documents
Culture Documents
Lecture 3
Lecture 3
Performance
CPU clock cycles Processors executes Instructions
No of instructions × CPI
¿
Clock Rate
CKV
Performance
Alternative Representation
CPU time
¿ No of Instructions × CPI ×Clock cycle time
No of instructions × CPI
¿
Clock Rate
Trends in Cost
Trends in Cost
Process
CKV
Trends in Cost
Cost of wafer
Cost of die=
dies per wafer × Die yield
CKV
Trends in Cost
wafer area
dies per wafer =
Die area
OR
2
wafer diameter
Trends in Cost
Accurately
2
wafer diameter
Trends in Cost
Bose-Einstein formula
Wafer yield
Die yield = N
(1+ Defects per unit area × Die area )
Empirical model [Sydow 2006]
Wafer yield – helps in eliminating the wafers that are completely bad
Trends in Cost
Trends in Cost
So far
Trends in Technology
Performance
Cost
Principle of Locality
Programs tend to reuse instructions and data – cache, virtual
Mem
Focus on Common case
In making design tradeoff favor frequent case over
infrequent case
CKV
Fraction enhanced
Execution new=Executionol d ×( ( 1 − Fraction enhanced ) + )
speedupenhanced
Fraction enhanced
Execution new=Executionol d ×( ( 1 − Fraction enhanced ) + )
speedupenhanced
Execution old 1
Speedup overall= =
Execution new Fraction enhanced
( 1 − Fraction enhanced ) +
speedup enhanced
Evolution of computers
Cost
Amdahl’s Law
CKV
Problems
A compiler designer is trying to decide between two code sequences for a
particular computer. The hardware designer have supplied the following
facts. CPI for each instruction class
A B C
CPI 1 2 3
1 2 1 2
2 4 1 1
Which code sequence executes the most instructions ? Which will be
faster ? What is the CPI for each sequence ?
CKV
Problems
Suppose that we want to enhance the processor used for web serving. The new
processor is 10 times faster on computation in web serving application than the
original processor. Assuming that the original processor is busy with
computation 40 % of the time and is waiting for I/O 60% of the time. What is the
overall speedup gained by incorporating the enhancement?
CKV
Problems
your company's internal studies show that a single core system working at 2 GHz
is sufficient for the demand on your processing power of 10 W. However you are
exploring whether you could save power by using to cores.