[理工] [計組]-中央95-電機

看板Grad-ProbAsk作者時間16年前 (2010/03/08 03:01), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
題目如下: A computer system has L1 and L2 cache. The local hit rates for L1 and L2 are 90% and 80%, respectively. The miss penalties are 10 and 50 cycles, respectively. Assuming a CPI of 1.2 without any cache misses and an average of 1.1 memory accesses per instruction (1)What is the average CPI after cache misses are factored in? 解答: effective CPI=1.2+[(1-0.9)*0.8*10+(1-0.9)*(1-0.8)*(10+50)]*1.1 =3.4 想請問的是為什麼1.1是乘在那個地方? 我的想法是只要當L1和L2都miss,也就是必須要存取到記憶體時再 乘1.1就好,這樣的想法是錯在哪裡呢? -- 家家是家,到家才是家~道道是道,放下見大道 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.64.85.221

03/08 18:47, , 1F
因為1.1是memory access "per instrution"的次數
03/08 18:47, 1F

03/08 18:50, , 2F
要求的是cpi 若hit才算的話 會變成hit的MEM次數沒算
03/08 18:50, 2F
文章代碼(AID): #1Ba_W5tb (Grad-ProbAsk)