Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose Tserial = n and Tparallel = n / p + log 2 ( p ) , As ( an example, suppose that T s

Suppose Tserial = n and Tparallel = n/p + log2(p), As (an example, suppose that Tserial=n, where the units of Tserial are in microsec-
onds, and n is also the problem size. Also suppose that Tparallel=np+1. Then
E=np(np+1)=nn+p.
To see if the program is scalable, we increase the number of processes/threads by a
factor of k, and we want to find the factor x that we need to increase the problem
size by so that E is unchanged. The number of processes/threads will be kp and the
problem size will be xn, and we want to solve the following equation for x :
E=nn+p=xnxn+kp.
Well, if x=k, there will be a common factor of k in the denominator xn+kp=
kn+kp=k(n+p), and we can reduce the fraction to get
xnxn+kp=knk(n+p)=nn+p.
In other words, if we increase the problem size at the same rate that we increase the
number of processes/threads, then the efficiency will be unchanged, and our program
is scalable.
There are a couple of cases that have special names. If when we increase the
number of processes/threads, we can keep the efficiency fixed without increasing the
problem size, the program is said to be strongly scalable. If we can keep the efficiency
fixed by increasing the problem size at the same rate as we increase the number of
processes/threads, then the program is said to be weakly scalable. The program in our
example would be weakly scalable.where times are in microseconds. If we increase p by
a factor of k, find a formula for how much well need to increase n in order to maintain constant efficiency.
How much should we increase n by if we double the number of processes from 8 to 16? Is the parallel program
scalable? I worked out that the efficiency equation would be E = n /((n/p)+ p * log2(p)) but I am having trouble with the increasing by a factor of k aspect. I found an example in my textbook and from there got to E = xn /((xn/kp)+ kp * log2(kp))* kp/kp . Can someone help?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago