Professional Documents
Culture Documents
Speedup Models
Amdhals Law
!
One processor
s1
sn
s2
Amdahls law
Multiple Processors
Serial Section
s1
Parallelizable sections
(1 )
Amdahls law
!
Speedup:
S(n) = T(sequential)/T(processor)
P
1
+(1) =
=
=
(1) +(1)/ P 1+(P1)
+
P
Serial Section
s2
s3
.
.
sn
tp
P
Proc.
(1 ) / P
P
1
=
1 + (P 1) + (1 ) / P
= 0, S = P
= 1, S = 1
P
S =
Amdhals Law
Amdhals Law
!
!
!
!
Amdhals Law
workload
Execution Time
!
!
t1
W1 w1
w1
w1 w1
w1
t1
wn wn wn
wn wn
wn
tn
t1
tn
tn
t1
tn
No. of processors
No. of processors
Gustafsons Law
Scaled Speedup =
( +(1)P)
= +(1)P
+(1)
= P(P1)
(1 )
Parallel Processor
1-
workload
w1
speedup
Execution Time
1024x
t1
t1
t1
1014x
1004x
993x
983x
t1
w1
w1
w1
wn
W1
wn wn wn
wn
No. of processors
tn
tn
tn
tn
No. of processors
N
Sequential Fraction of Program
0%
1%
2%
Gustafsons law
!
3%
4%
Scalability
!
Architecture/Hardware Scalability:
Algorithmic Sclability: