05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Question 9<br />

Yet another user has the following requirements <strong>for</strong> the machines discussed in Question<br />

2.1: program 1 must be executed 200 times each hour. Any remaining time can be used<br />

<strong>for</strong> running program 2. If the machine has enough per<strong>for</strong>mance to execute program 1 the<br />

required number of times per hour, per<strong>for</strong>mance is measure by the throughput <strong>for</strong><br />

program 2. Which machine is faster <strong>for</strong> this workload? Which machine is more costeffective?<br />

Page | 125<br />

Solution<br />

3600 seconds = 1 hour<br />

M1<br />

P1 10*200 = 2000sec<br />

P2 = 3600-2000<br />

= 1600<br />

M2<br />

5*200 = 1000sec<br />

Remaining time P2 = 3600-1000<br />

= 2600<br />

Number of times P2 on M1 = 1600/3<br />

= 533<br />

Number of times P2 on M2 = 2600/4<br />

= 65<br />

Cost effective M1 = 533/10000<br />

= 0.0533<br />

Cost effective M2 = 650/15000<br />

= 0.0433<br />

M1 is slightly better

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!