作者assassin88 (AI)
看板Grad-ProbAsk
标题Re: [理工] [计组]-中央96-资工
时间Wed Dec 30 23:25:58 2009
※ 引述《steven9374 (steven)》之铭言:
: A computer system has L1 and L2 cache. The local hit rates for
: L1 and L2 are 98% and 80%,respectively.The miss penalities are
: 8 and 60 cycles,respectively.(a)Assume a CPI of 1.2 without
: any cache miss and average of 1.1 memory accesses per instruction,
: what is effective CPI after cache misses are factored in?
: 请问这题如何解?
: 有看答案但是看看了不太懂
effective CPI = base CPI + additional CPI
Ans:1.2+1.1*0.02*(8+0.2*60)
答案不知道对不对..有错请指正。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.136.241.137
1F:推 steven9374:我题目那边打错了... 是95%才对不是98% 12/30 23:44
2F:→ steven9374:最後CPI=1.2+(5%*8+5%*20%*60)*1.1=2.3 12/30 23:46
3F:→ assassin88:恩恩,看起来似乎是对的XD 12/30 23:56
4F:推 steven9374:不过我不太懂为啥後面还要*0.5%说 12/31 00:04
5F:→ assassin88:哪里有0.5%? 12/31 00:07
6F:推 steven9374:说错5%才对 12/31 00:08
7F:→ whoisfriday:*5%是表示L1 miss,再*20%是表示L2也Miss。 12/31 00:29
8F:推 converse2006:应该跟楼上说的一样 因为是LOCAL吧 12/31 00:33
9F:推 steven9374:Local是指local miss rate吗? 12/31 00:35
10F:→ ieric:L1如果没miss 那就不用到L2找噜 12/31 00:36
11F:推 converse2006:yap 只有当第一个MISS 你才有机会第二个MISS 12/31 00:36
12F:推 steven9374:好混乱 可是我看课本其他类试题都没有多*L1 MISS 12/31 00:47
13F:→ steven9374:我看的都像1.2+(5%*8+20%*60)这样而已说 12/31 00:48
14F:推 converse2006:主要是他有说明local miss rate 一般来说都都会想成 12/31 00:51
15F:→ converse2006:global 多做题目应该就会习惯了 12/31 00:51
16F:推 steven9374:所以是那个Local miss rate的问题 12/31 00:53
17F:推 converse2006:恩恩 我不知道有没有反例 不过我都是这样做的 12/31 00:54
18F:→ converse2006:没特别说明就想成 global miss rate 12/31 00:54
19F:推 steven9374:恩 那我知道了 不过我还真的没看过Local hit rate的说 12/31 00:55