1. SPEForums need your contributions to build up a strong repository of performance engineering resources.

    Dismiss Notice
  2. Whatsapp Group For Software Performance Engineering Professionals!! Click here to get added . No Spam for strictly professional discussions only.
    Dismiss Notice
Dismiss Notice
Hello Guest,

Please reach out to us at admin@speforums.com/+91 8600177662 in case you face any issues with SPEForums. Share your feedback - Click Here

Please support us by sharing performance engineering tutorials/resources with SPEForums.com

-Crew

Amdahl's law

Not everything can be paralleled and optimized

  1. admin
    Amdahl’s law is a formula used in parallel computing to find the maximum improvement improvement possible by improving a particular part of a system. In parallel computing, Amdahl's law is mainly used to predict the theoretical maximum speedup for program processing using multiple processors. It is named after Gene Amdahl, a computer architect from IBM and the Amdahl Corporation.

    To understand the law lets consider a single processor system which completes a job in 10 Hours. To improve the performance we can try using parallel processors and make the execution time fast, but it may be the case that some of the code cannot be made to run in parallel. For the sake of example lets consider 20% of the code cannot be run in parallel.

    So P = 80%

    P = proportion of program which can be executed in parallel.

    Definition:

    Amdahl’s law states that in parallelization, if P is the proportion of a system or program that can be made parallel, then the maximum speedup that can be achieved using N number of processors is 1/((1-P)+(P/N).


    Using the law - with 10 processors, we can achieve speedup of 1/(1-0.8)+(0.8/10) = 3.57%

    Calculating the maximum speedup:

    We can only achieve maximum improvement with N tending to infinity (maximum processors)

    for our example - we can only achieve improvemnt of 1/(1-0.8) = 5X times

    5X in our example would mean job can now be completed just in 2 hours.

    Graphical representation of the law

    upload_2017-12-3_3-3-16.png


    Author:

    The law was derived by Gene Amdahl and was presented at the AFIPS Spring Joint Computer Conference in 1967.

    [​IMG]