Question

In: Computer Science

11. (12 pts.)Consider a program where 25% of its execution is serial and the remainder is...

11. (12 pts.)Consider a program where 25% of its execution is serial and the remainder is parallel (i.e., its performance scales linearly in the number of cores for an arbitrary number of cores). The performance of the serial portion of the program is directly proportional to memory access latencies.

1) Which is better enhancement,

a)Enhance the system with 3 cores,

b) Reduce the serial processing time by half.

Show your work.

2) What is the maximum speedup that can be achieved for a) and b)? (show your work)

Solutions

Expert Solution

The Amdahl's law states that speed is equal to (Time with serial implementation)/(Time with parallel implementation)

ie, Speed up

Sn=1 ∕ (S+(P/n)

Where, Sn -> Speed up

S -> Time to execute Serial portion of program

P ->Time to execute Parallel portion of program

n -> Number of cores

1)

In the given question 25% of program is sequential and 75% is parallel

now let us look in both enhancements

a) Enhance the system with 3 cores

Sn=1 ∕ (S+(P/n)

here, S=25%

P=75%

n=3

there for Sn=1 / ((0.25)+(0.75) / 3)

=1 / ((0.25)+(0.25))

=1 / (0.5)

= 2

b) Reduce the serial processing time by half.

  Sn=1 ∕ (S+(P/n)

here S=0.25 / 2 = 0.125

P=0.75

nothing said about number of cores so let us take it as 1

there for Sn=1 / ((0.125)+(0.75))

= 1 / (0.875)

= 1.142

Enhancing system with 3 cores is better

2) From the above work we can understand that maximum speed up of a is 2 and for b it is only 1.142

  


Related Solutions

11. (12 pts) Consider a system with 32-bit addresses and a 16KB 8-way set-associative cache. Each...
11. (12 pts) Consider a system with 32-bit addresses and a 16KB 8-way set-associative cache. Each cache line contains 64 bytes. (a) How many bits of an address are used for the offset in this cache? (b) How many bits of an address are used for the index in this cache? (c) How many bits of an address are used in the tag for this cache? (d) What is the value of the tag for 0x000d6ae2? (e) What is the...
Consider an inventory system that fits the model for a serial two-echelon system, where K1 =...
Consider an inventory system that fits the model for a serial two-echelon system, where K1 = $5,000, K2 = $200, h1 = $10, h2 = $11, and d = 100. Fill the values in the given table that shows the results from performing both separate optimization of the installations and simultaneous optimization of the installations hen calculate the percentage change in the total variable cost per unit time if the results from performing separate optimization were to be used instead...
Write the algorithm of program that evaluates the series 5-10+7+15+920+11+25+… up to x terms, where the...
Write the algorithm of program that evaluates the series 5-10+7+15+920+11+25+… up to x terms, where the value of x is taken as input from the user. For example, the sum of the given series up to 3 terms should give 2 as output (5-10+7=2), similarly, the sum of this series up to 4 terms should give 17 as output (5-10+7+15=17), Write this in psuedocode
Consider the following data set: {4, 7, 11, 12, 18, 19, 20, 22, 23, 25} Answer...
Consider the following data set: {4, 7, 11, 12, 18, 19, 20, 22, 23, 25} Answer the following questions. If necessary, round your answers to four decimal places. (a) Find the sample median of the data set. (b) How much can you increase the smallest value from the data set without getting the value of the sample median changed? (Enter NA if there is no limit to the amount.) (c) How much can you decrease the largest value from the...
Consider the following program. There are 11 statements in the program starting with int x; Show...
Consider the following program. There are 11 statements in the program starting with int x; Show the memory allocated for the program in the stack and heap for each statement. Also, show any values assigned to each of these memory locations. In other words, you will show 11 stacks and 11 heaps as the answer to your question. #include <iostream> using namespace std; int main() { int x; // Stmt 1 int * y; // Stmt 2 y = new...
The United States Postal Service (USPS) uses 11-digit serial numbers on its money orders. The first...
The United States Postal Service (USPS) uses 11-digit serial numbers on its money orders. The first ten digits identify the document, and the last digit is the check digit. The check digit is obtained by a11 = a1 + · · · + a10 (mod 9). For example, one of the money order has serial number 16094004377. (a) The first ten digits of the serial number on a USPS money order are 7306125986. Find the last digit (the check digit)....
12 pts - If a heart is removed from the body, its beat rate actually speeds...
12 pts - If a heart is removed from the body, its beat rate actually speeds up until sugar reserves dwindle.   Discuss how the SA [sinoatrial-pacemaker] node cells manipulate ions at their surface to rhythmically contract.  Be specific about pumps, transporters, and channels.  Make sure your explanation includes setup and recovery back to set-up. Be specific about how the Action Potential passes down the length of the cardiac cell and from one cell to the next. Then discuss how the body’s parasympathetic...
Consider the IS-LM and aggregate demand/aggregate supply model of Chapters 11 and 12. Consider a reduction...
Consider the IS-LM and aggregate demand/aggregate supply model of Chapters 11 and 12. Consider a reduction in the level of taxes, starting from an initial situation in which output is equal to its natural level. a) Depict the short-run effects of the reduction in T using 3 graphs: one for the market for goods and services, one for the IS-LM curves, and one for the Aggregate Demand and Supply curves. How do the new short-run equilibrium values of r, Y...
[40 pts] Consider a certain city with population 50000, where monthly income is normally distributed with...
[40 pts] Consider a certain city with population 50000, where monthly income is normally distributed with mean 2000TL and standard deviation 300TL. (you may use the table below for calculations) [20pts] Find the maximum income among the people with the lowest 10% income. [20pts] Find the minimum income among the people with the highest 30% income.
11) What is a fixed cost? 12) What is a variable cost? 13) Where does the...
11) What is a fixed cost? 12) What is a variable cost? 13) Where does the marginal cost curve intersect the average total cost curve? 14) What will be the impact on the total product of labor curve of an improvement in technology? 15) According to the Law of Diminishing Returns, what happens to total output as more of a variable input is used with fixed resources?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT