Professional Documents
Culture Documents
1KHz= 10^3 Hz
1MHz= 10^6 Hz
1GHz = 10^9 Hz
1THz = 10^12 Hz
In other word
= 5.7
In other word
Performance
Example of AA =
: Machine 5 X Performance
having of Machine
the Specification : 5HzBmachine , effective CPI
is 5.2 Machine B having the Specification : 8Hz machine , effective CPI is
7.2. Find the Speedup factor of the machine assume the number of IC for
both the machine is same
Performance of Machine A
Execution time of B
Speed UP =--------------------------------
= -----------------------
Performance of Machine B
Execution time of A
IC X CPI X C
Speedup = ---------------
IC X CPI X C
Example : Let assume we have a machine (A) of 1MHz clock rate that runs a
bench program consists of 1000 instruction with CPI is 2. Let we want to improve
the performance of this machine by changing some hardware that leads to
change the clock rate to 2Mhz with new CPI is 1.5 and also we are optimizing
the compiler of the machine so that the number of instruction of the benchmark
program change to 900. Then find out the Speed Up in performance of this
machine .
Amdahl's law : Used to find the performance gain obtained from improving the portion of a
computer(task)
Amdahl's law is an expression used to find the maximum expected improvement to an overall
system when only part of the system is improved. It is often used in parallel computing to
predict the theoretical maximum speedup using multiple processors.
Example: Let a person covers a source to destination point in 10 hrs Without Enhancement
with walking. Suppose the narrow road only cover with walking (Travelling only with
and the remaining can be with walking, cycling Or in bike as Walking)
shown in the figure.
Assume cycling improve the 3times speed up and with bike improve
9 times enhancement as compared to walking.
Enhancement with
First we have to find the fraction of Walking + cycling
With enhanced Speed
Execution time using Cycling Up of 3 times
Overall speedup = 1
------------ = 1/ 0.4 =2.5
(0.1 + 0.9 /3)
Note: Narrow road only for walking
Wide road can be used walking
Cycling, riding bike etc.
Example :
Let a program have 40 percent of its code enhanced to run 2.3 times faster .
What is the overall system speedup S? What will be the Maximum speed up
of the machine ?
overall speed up = 1
------------------
(1-f) + f/S
Overall Speed Up = 1
---------------------- = 1.292
0.6 +( 0.4 /2.3)
Maximum Speed up = 1 1
------------------------- = -------------
0.6 + ( 0.4/ infinity) 0.6
A computer with single core execute a task such that 25% of the task is serialized
and remaining task is parallelized one. If we increase more number of core then
what is the overall Speed up
Speed Up = 1
----------- = 1.6
0.25 +0.75/2
Four core = 1 2.28 What is the maximum core you can use
----------- =
So that the maximum speed up gain can be
0.25 +0.75/4
achieved up to 8
8core = 1 2.9
----------- = Answer is impractical as maximum
0.25 + 0.75/8 Speed up gain is 4