Professional Documents
Culture Documents
Coa Presentation
Coa Presentation
Organisation and
Architecture
PRESENTATION
TO :- MRS. ANUPMA SANGWAN
PREPARED BY :-
A program used to take 20 minutes to run. Now it takes 15. What is the
speedup?
𝟐𝟎
𝑺𝒑𝒆𝒆𝒅𝒖𝒑 = =𝟏 . 𝟑𝟑
1.33 times or 33% 𝟏𝟓
Gene Amdahl
Amdhal’s law:speed up performance law
Originally formulated by gene amdhal’s on 1960’s.
01/18/2022
It is one of the speedup performance law.
It is based on a fixed problem size.
Actually to keep the efficiency of a system fixed we have to increase both the
size of the problem and the no. of processor simultaneously .
Amdhal’s law tells that for a given problem size ,the speedup doesn’t
increase linearly as the number of processor increases.In fact ,speed up
tends to become saturated.
Amdhal’s law states that a small portion of the program which cannot be
parallelized(serial part) ,will limit the overall speed up,available from
parallelization.
Computation problem = serial part + parallel part
01/18/2022
01/18/2022
Amdahl's Law
𝟏
𝑺=
𝒑
( 𝟏 − 𝒑)+
𝒏
Amdahl's Law
Describes overall speedup of a system when we speed up
one part of a system
p:part of program which is parallel 𝟏
𝑺=
n : total number of 𝒑
processors (𝟏 − 𝒑)+
𝒏
1 – p :serial part of program
S : speed up
Example
…upgrade its disk drives for $7,000 to make them 150% faster.
Processes spend 70% of their time running in the CPU and 30% of
their time waiting for disk service
p:part of program which is parallel 𝟏
𝑺=
n : total number of . 𝟑𝟎
processors
( 𝟏 − . 𝟑𝟎 ) +
𝟐 . 𝟓𝟎
1 – p :serial part of program
S : speed up
150% increase on 100% = 250%
Example
…upgrade its disk drives for $7,000 to make them 150% faster.
Processes spend 70% of their time running in the CPU and 30% of
their time waiting for disk service
𝟏
𝑺=
Speed up is ~ 22% . 𝟕𝟎+. 𝟏𝟐
𝟏
𝑺=
. 𝟖𝟐
𝑺=𝟏 . 𝟐𝟏𝟗𝟓𝟏
Example
f : fraction of time
part is limiting factor
𝟏
𝑺=
k : speedup of that . 𝟕𝟎
part ( 𝟏 − . 𝟕𝟎 ) +
𝟏 . 𝟓𝟎
1 – f : fraction of time
doing other stuff
S : speed up
Example
…upgrade its CPU to run 50% faster. Processes spend 70% of their
time running in the CPU and 30% of their time waiting for disk service
𝟏
Speed up is ~ 30% 𝑺=
. 𝟑𝟎+. 𝟒𝟔 𝟔
𝟏
𝑺=
. 𝟕𝟔 𝟔
𝑺=𝟏 . 𝟑𝟎𝟒
Choices
1.0526
1.0619
Limitations of Amdahl's Law