I am puzzling with Amdahl's Law to determine performance gains and the serial application part and fail to figure out this one.
Known is the following:
S(N) = Speedup factor for (N) CPU's
N = Number of CPU's
f = The part of the program which is executed sequential
S(N) = N / ( 1 + f * ( N - 1 ) )
If I have 4 CPU's and a speedup factor (performance gain) of 3x. What would f be?
My guess:
S(N) = 3 (that's our performance gain using 4 CPU's)
N = 4
So entering these values in the formula:
3 = 4 / ( 1 + f * ( 4 - 1 ) )
Am I correct when I say that f = 0,11? Or do I need to set S(N) to 1 (so divide by 3)? Or am I doing something else wrong?