Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amdahl's Law examples

Amdahl's Law states that the maximal speedup of a computation where the fraction S of the computation must be done sequentially going from a 1 processor system to an N processor system is at most

                 1 / (S + [(1 - S) / N])

Does anyone know of books or notes where the actual analysis of the code, for some non-trivial computation, for determining the fraction S is done ?

like image 645
OTO Avatar asked Apr 08 '11 17:04

OTO


1 Answers

There is a very good discussion of Amdahl's law in the Microsoft Patterns and Practices book on Parallel Programming with .NET.

Doing a detailed analysis of the code is going to be quite difficult - as every situation is unique.

However, it should be something that can be easily approximated, provided you have the mechanisms to determine the amount of concurrency. By changing the usable concurrency and profiling, you should be able to estimate S by solving the equation in reverse.

like image 181
Reed Copsey Avatar answered Oct 20 '22 10:10

Reed Copsey