Professional Documents
Culture Documents
L11 Granularity
L11 Granularity
L11 Granularity
Lecture #10
Performance Metrics
Performance
P0
P1
P2
P3
P4
Essential/Excess Computation Interprocessor Communication
P5 Idling
P6
• Execution Time
• Speedup
• Efficiency
• Cost
Execution Time
• The parallel runtime is the time that elapses from the moment
the Parallel Computation starts to the moment the last processor
finishes execution.
• The total time collectively spent by all the processing elements over
and above that required by the fasters known sequential algorithm for
solving the same problem on a single processing element.
Total Parallel Overhead
To (1)
=
Speedup
n
• Speedup S is given b y S = log n
Θ
Efficiency
S
E = . (2)
p
• Efficiency E is given b y
n
Θ log n
E =
n
1
= Θ
log n
Cost of a Parallel
System
• Cost is the product of parallel runtime a n d the number of
processing elements used (p × T P ).
• Granularity of a task
• measure of the amount of work which is performed by that
task
• communication overhead between multiple processors or
processing elements
• Granularity - Computation / Communication Ratio
• Impact of granularity on performance
• If there are n inputs and only p processing elements (p < n), we can use the
parallel algorithm designed for n processing elements by assuming n virtual
processing elements and having each of the p physical processing elements
simulate n/p virtual processing elements.
• n = 16 and p = 4