0

I am working on a homework assignment. I seem to be having difficulties applying Amdahl's Law. I feel as if I am working the problem out correct. Here is the question I am working on.

Suppose the daytime processing load consists of 60% CPU activity and 40% disk activity. Your customers are complaining that the system is slow. After doing some research, you learn that you can upgrade your disks for $8,000 to make them 2.5 times as fast as they are currently. You have also learned that you can upgrade your CPU to make it 1.4 times as fast for $5,000.

a. Which would you choose to yield the best performance improvement for the least amount of money?

b. Which option would you choose if you don't care about the money, but want a faster system?

c. What is the break-even point for the upgrades? That is, what price would we need to charge for the CPU (or the disk – change only one) so the result was the same cost per 1% increase for both?

I worked the formula and received the same amount of money for the 1% improvement. For the disk option i did, f=.4, k=2.5. When I plugged these numbers into the formula i got a speedup of 32%. For the CPU option, f=.6, k=1.4. I got a speed up of 20%. But the cost per 1% improvement, I am getting the same number of $250. Is my math off somewhere?

4

1 回答 1

1

我想知道这是否只是一个舍入错误?

SU(Disk) = 1.31579

http://wolfr.am/102zBzb

SU(CPU) = 1.2069

http://wolfr.am/102zxiL

所以我知道你在哪里得到了 32% 和 20%,但是你已经四舍五入得到 32%,四舍五入得到 20%。你会注意到,如果你尝试 32% 和 21%,每 1% 的加速你会得到不同的成本

就个人而言,我可能会使用 31.6 和 20.7(甚至是完整的 31.579 和 20.69)。

于 2013-05-01T07:48:21.987 回答