作者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