Computer Organization and Design MIPS Edition, Fifth Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design)
Expert Solution & Answer
Book Icon
Chapter 1, Problem 1.9.1E

Explanation of Solution

Number of processorsArithmetic instructionsL/S instructionsBranch instructionsExecution Time (Seconds)Speedup
12.56×1091.28×1092.56×1099.61
21.83×1099.14×1082.56×1097.041.36
49.12×1084.57×1082.56×1093.841.83
84.57×1082.29×1082.56×1092.241.71

The arithmetic instructions are parallelized to run over multiple cores as follows

Arithmaticinstructions=Numberofinstructions0.7×Numberofprocessors

Substitute, “2.56×109” for “number of instructions” and “2” for “number of processors” in the above formula

Arithmaticinstructions(2)=2.56×1090.7×2=1.83×109

Thus, the number of arithmetic instructions with 2 processors is 1.83×109.

Substitute, “2.56×109” for “number of instructions” and “4” for “number of processors” in the above formula

Arithmaticinstructions(4)=2.56×1090.7×4=9.12×108

Thus, the number of arithmetic instructions with 4 processors is 9.12×108.

Substitute, “2.56×109” for “number of instructions” and “8” for “number of processors” in the above formula

Arithmaticinstructions(8)=2.56×1090.7×8=4.57×108

Thus, the number of arithmetic instructions with 8 processors is 4.57×108.

The L/S instructions are parallelized to run over multiple cores as follows

L/Sinstructions=Numberofinstructions0.7×Numberofprocessors

Substitute, “1.28×109” for “number of instructions” and “2” for “number of processors” in the above formula

L/Sinstructions(2)=1.28×1090.7×2=9.14×108

Thus, the number of L/S instructions with 2 processors is 9.14×108.

Substitute, “1.28×109” for “number of instructions” and “4” for “number of processors” in the above formula

L/Sinstructions(4)=1.28×1090.7×4=4.57×108

Thus, the number of L/S instructions with 4 processors is 4.57×108.

Substitute, “1.28×109” for “number of instructions” and “8” for “number of processors” in the above formula

L/Sinstructions(8)=1.28×1090.7×8=2.29×108

Thus, the number of L/S instructions with 8 processors is 2.29×108.

The total execution time of the program can be calculated using the following formula

Executiontime=CPI×NumberofinstructionsClockrate

Substitute, “1” for “CPI of arithmetic instructions”, “12” for “CPI of L/S instructions”, “5” for “CPI of branch instructions”,, “2.56×109” for “number of arithmetic instructions”, “1.28×109” for “number of L/S instructions” “0.25×109”for “number of branch instructions” and “2×109” for “clock rate”

Executiontime(1)=(1×2.56×109)+(12×1.28×109)+(5×0.25×109)2×109=9.6

Thus, the total execution time of the program with 1 processor is “9.6seconds”.

Substitute, “1” for “CPI of arithmetic instructions”, “12” for “CPI of L/S instructions”, “5” for “CPI of branch instructions”,, “2.56×1090.7×2” for “number of arithmetic instructions”, “1.28×1090.7×2” for “number of L/S instructions” “0.25×109”for “number of branch instructions”, “and “2×109” for “clock rate”

Executiontime(2)=(2.56×1090.7×2)+(12×1.28×1090.7×2)+(0.25×109)2×109=7.04

Thus, the total execution time of the program with 2 processors is “7.04seconds”.

Substitute, “1” for “CPI of arithmetic instructions”, “12” for “CPI of L/S instructions”, “5” for “CPI of branch instructions”,, “2.56×1090.7×4” for “number of arithmetic instructions”, “1.28×1090.7×4” for “number of L/S instructions” “0.25×109”for “number of branch instructions”, “and “2×109” for “clock rate”

Executiontime(4)=(2.56×1090.7×4)+(12×1.28×1090.7×4)+(0.25×109)2×109=3.84

Thus, the total execution time of the program with 4 processors is “3.84seconds”.

Substitute, “1” for “CPI of arithmetic instructions”, “12” for “CPI of L/S instructions”, “5” for “CPI of branch instructions”,, “2.56×1090.7×8” for “number of arithmetic instructions”, “1.28×1090.7×8” for “number of L/S instructions” “0.25×109”for “number of branch instructions”, “and “2×109” for “clock rate”

Executiontime(8)=(2.56×1090.7×8)+(12×1.28×1090.7×8)+(0.25×109)2×109=2.24

Thus, the total execution time of the program with 8 processors is “2.24seconds”.

The relative speedup of the processor can be calculated using the following formula

Speedup=Executiontime(required)Executiontime(current)

Substitute, “9.6” for “execution time of required processor” and “7.04” for “execution time of current processor”

Speedup(2-1)=9.67.04=1.36

Therefore, the relative speedup of 2 processors with a single processor is “1.36”.

Substitute, “9.6” for “execution time of required processor” and “3.84” for “execution time of current processor”

Speedup(4-1)=9.63.84=2.5

Therefore, the relative speedup of 4 processors with a single processor is “2.5”.

Substitute, “9.6” for “execution time of required processor” and “2.24” for “execution time of current processor”

Speedup(8-1)=9.62.24=4.28

Therefore, the relative speedup of 8 processors with a single processor is “4.28”.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
A customer has requested a quotation for a machining job consisting of 80 parts. The starting work part is a casting that will cost $17.00 per casting. The average production time of the job is 13.80 min on an automatic machine whose equipment cost rate is $66.00/hr. This rate does not include any overhead costs. Tooling cost is $0.35 per part. The factory overhead rate is 128% and the corporate overhead rate is 230%. These rates are applied only to time and tooling costs, not starting material costs. The company uses a 15% markup on total cost for its price quotes. What is the quoted price for this job?
Timing Diagram for Memory Read Bus Cycle: Clock- பட I T1 I T₂ T₂ 1 Tw IT I ALE Add/Status BHE, Ag A Sy- Sg Add/Data A15 Ag Bus reserved for data in Dis-Do RD' DEN'. DT/R'. How do I adjust the drawing correctly and how does the question come on it and on what size do I solve Timing Diagram for Memory Write Bus Cycle: Clock I T₁ I T₂ T3 ITW T4 1 ALE Add/Status BHE, Ag Ag S7- 53 Add/Data A15 Ag Valid data Dis- Do WR DEN DT/R 5:18
Okay I want to draw a plan for me how to start from zero to the stage of development with some books that help me and complete the natural concept 11:24 ص
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY