Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5.P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2.

a. Which processor has the highest performance expressed in instructions per second?

b. f the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions.

c. We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction?

Short Answer

Expert verified

a. P2 has the highest performance expressed in instructions per second is2.5×109

b. Several cycles:P1=30×109s,P2=25×109s,P3=40×109s

Several instructions:P1=20×109,P2=25×109,P3=18.18×109

c. Clock rate to get time reduction:

P1=5.14GHz,P2=4.28GHz,P3=6.75GHz

Step by step solution

01

Measuring Performance and Formulae

The performance of the system is measured based on time. The computer that performs the work in the least time is considered as the fastest. CPU execution time is the time that the CPU takes to complete the execution of the process.

When considering the execution of the program, the average number of the clock cycles taken to execute each instruction is called Clock cycles Per Instruction (CPI).

Write the formula for Performance

Performance=ClockrateCPI ….. (1)

Write the formula for finding a number of cycles of processor:

Numberofcycles=Executiontime×Clockrate ….. (2)

Write the formula for finding a number of instructions of processor:

Numberofinstructions=NumberofcylesCPI ….. (3)

Write the formula to find the clock rate.

Executiontime=Numberofinstruction×CPIClockrate ….. (4)

Clockrate=NumberofInstructions×NewCPIExecutiontime ….. (5)

02

Determine the high-performing Processor.

a,

Given: The processors P1, P2, and P3 execute the same instruction set.

PerformanceofP1=ClockrateCPI=3×1091.5=2×109

PerformanceofP2=ClockrateCPI=2.5×1091.0=2.5×109

PerformanceofP3=ClockrateCPI=4×1092.2=1.8×109

From the performance measure of the Processors P1, P2, and P3 that are expressed in instruction per second. P2 is the highest performing processor.

03

Determine the number of cycles and number of instructions

b.

Given that each processor executes a program in 10 seconds.

The number of cycles required for each processor to execute a program in 10 seconds, is calculated as follows:

NumberofcyclesofP1=Executiontime×Clockrate=10×3×109=30×109

NumberofcyclesofP2=Executiontime×Clockrate=10×2.5×109=25×109

NumberofcyclesofP3=Executiontime×Clockrate=10×4×109=40×109

The number of instructions required to each processor to execute a program in 10 seconds, is calculated as follows:

role="math" localid="1650413443540" NumberofInstructionsPI=NumberofcyclesCPI=30×1091.5=20×109

NumberofInstructionsP2=NumberofcyclesCPI=25×1091=25×109

NumberofInstructionsP3=NumberofcyclesCPI=40×1092.1=18.18×109
04

Determine the clock rate to achieve the given reduced time

c.

It is given that they are trying to reduce the execution time by 30% but this increases the value of CPI by 20%.

The following formula can be modified to find the clock rate.

The new clock rate for the reduced CPI value is calculated as follows:

From the New CPI, The Clock rate for the processors can be calculated as follows:

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Construct the truth table for a four-input odd-parity function (see page B-65 for a description of parity).

Assume a color display using 8 bits for each of the primary colors (red, green, blue) per pixel and a frame size of 1280 × 1024. a. What is the minimum size in bytes of the frame buffer to store a frame? b. How long would it take, at a minimum, for the frame to be sent over a 100 Mbit/s network?

Question: There are times when we want to add a collection of numbers together. Suppose you wanted to add four 4-bit numbers (A, B, E, F) using 1-bit full adders. Let’s ignore carry lookahead for now. You would likely connect the 1-bit adders in the organization at the top of Figure B.14.1. Below the traditional organization is a novel organization of full adders. Try adding four numbers using both organizations to convince yourself that you get the same answer.

B.24 [15] <§B.5> The ALU supported set on less than (slt) using just the sign bit of the adder. Let’s try a set on less than operation using the values -7ten and 6ten. To make it simpler to follow the example, let’s limit the binary representations to 4 bits: 1001two and 0110two. 1001two – 0110two = 1001two + 1010two = 0011two This result would suggest that -7 > 6, which is clearly wrong. Hence, we must factor in overflow in the decision. Modify the 1-bit ALU in Figure B.5.10 on page B-33 to handle slt correctly. Make your changes on a photocopy of this figure to save time.

The results of the SPEC CPU2006 bzip2 benchmark running on an AMD Barcelona has an instruction count of 2.389E12, an execution time of 750 s, and a reference time of 9650 s.

1.11.1 [5] <§§1.6, 1.9> Find the CPI if the clock cycle time is 0.333 ns.

1.11.2 [5] <§1.9> Find the SPECratio.

1.11.3 [5] <§§1.6, 1.9> Find the increase in CPU time if the number of instructions of the benchmark is increased by 10% without affecting the CPI.

1.11.4 [5] <§§1.6, 1.9> Find the increase in CPU time if the number of instructions of the benchmark is increased by 10% and the CPI is increased by 5%.

1.11.5 [5] <§§1.6, 1.9> Find the change in the SPECratio for this change.

1.11.6 [10] <§1.6> Suppose that we are developing a new version of the AMD Barcelona processor with a 4 GHz clock rate. We have added some additional instructions to the instruction set in such a way that the number of instructions has been reduced by 15%. Th e execution time is reduced to 700 s and the new SPECratio is 13.7. Find the new CPI.

1.11.7 [10] <§1.6> Th is CPI value is larger than obtained in 1.11.1 as the clock rate was increased from 3 GHz to 4 GHz. Determine whether the increase in the CPI is similar to that of the clock rate. If they are dissimilar, why?

1.11.8 [5] <§1.6> By how much has the CPU time been reduced?

58 Chapter 1 Computer Abstractions and Technology

1.11.9 [10] <§1.6> For a second benchmark, libquantum, assume an execution time of 960 ns, CPI of 1.61, and clock rate of 3 GHz. If the execution time is reduced by an additional 10% without aff ecting to the CPI and with a clock rate of 4 GHz, determine the number of instructions.

1.11.10 [10] <§1.6> Determine the clock rate required to give a further 10% reduction in CPU time while maintaining the number of instructions and with the CPI unchanged.

1.11.11 [10] <§1.6> Determine the clock rate if the CPI is reduced by 15% and the CPU time by 20% while the number of instructions is unchanged.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free