copyright Hesham El-Rewini1 Speedup S = Speed(new) / Speed(old) S = Work/time(new) / Work/time(old) S = time(old) / time(new) S = time(before improvement) / time(after improvement)
copyright Hesham El-Rewini2 Speedup Time (one CPU): T(1) Time (n CPUs): T(n) Speedup: S S = T(1)/T(n)
copyright Hesham El-Rewini3 Amdahl’s Law The performance improvement to be gained from using some faster mode of execution is limited by the fraction of the time the faster mode can be used
copyright Hesham El-Rewini4 20 hours 200 miles A B Walk 4 miles /hour Bike 10 miles / hour Car-1 50 miles / hour Car miles / hour Airplane 600 miles /hour must walk Example
copyright Hesham El-Rewini5 20 hours 200 miles A B Walk 4 miles /hour = 70 hours S = 1 Bike 10 miles / hour = 40 hours S = 1.75 Car-1 50 miles / hour = 24 hours S = 2.9 Car miles / hour = hours S = 3.2 Airplane 600miles /hour = hours S = 3.4 must walk Example
copyright Hesham El-Rewini6 Amdahl’s Law (1967) : The fraction of the program that is naturally serial (1- ): The fraction of the program that is naturally parallel
copyright Hesham El-Rewini7 S = T(1)/T(N) T(N) = T(1) + T(1)(1- ) N S = 1 + (1- ) N = N N + (1- )
copyright Hesham El-Rewini8 Amdahl’s Law