Numerical Problem on Processor Pool Model

AI Thread Summary
In a distributed computing system using the processor-pool model, the maximum speed gain for compiling a program with F source files on P processors is calculated by comparing the parallel execution time to that of a single processor. The ideal scenario assumes equal compilation time for each file and no resource contention. However, real-world factors such as varying compile times, the need for linking and loading compiled modules, and serial activities can reduce the actual speedup. Amdahl's law highlights the limitations of parallel processing in such cases. Overall, while the processor-pool model offers potential speed advantages, practical constraints often diminish these gains.
22990atinesh
Messages
143
Reaction score
1
Consider the case of a distributed computing system based on the processor-pool model that has ##P## processors in the pool. In this system, suppose a user start a computing job that involves compilation of a program consisting of ##F## source file ##(F < P)##. Assume that at this time the user is the only user using the system. What maximum gain in speed can be hoped for this job in this systems compared to its execution on a single processor system ? What factors might cause the gain in speed to be less than this maximum ?

Attempt:
Let 't' secs are required by each processor in processor pool model to complete the job. Hence overall 't' secs will be needed as in processor pool model as all processor are running in parallel.

In case of single processor system time required will be = Ft s

Hence gain in speed is = (Ft - t)/Ft

is it correct or I'm assuming sth wrong. Can anybody help.
 
Your reasoning is fine if you make the assumption that every file requires the same time to compile, that there is no linking and loading of the compiled modules into a single runtime image, and that there are no resources that are competed for. In this case you have found an expression for the maximum, best case speedup.

In a real-world situation there's likely to be a range of compile times and library requirements, and the link/load step would require access to all the compiled modules after compilation.

The compilations would then be finished when the longest module is done, and linking could only start when that is complete. Linking and creating/writing the load image would likely involve some irreducible serial activity. Refer to Amdahl's law.
 
  • Like
Likes 22990atinesh
Back
Top