Re: [理工] [OS] 98交大 作業系統

看板Grad-ProbAsk作者 (無法顯示)時間14年前 (2012/01/12 21:38), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《onlyeric23 (Eric)》之銘言: : 9. : In a paging system with three level page tables, suppose that the hit ratio : is 90% ant it take 20 ns to search the TLB and 200ns to access memory. What : is the effective memory access time? : a. 240 : b. 260 : c. 280 : d. 300 : e. none of the above : 答案給c : 說明是EAT = (20 + 200) + 0.1*(20 + 3*200) : 自己本來的想法是TLB 對映到一個frame : 因為三層故要做三次TLB access : 然後算得很!@#$%^後選了e : 看了答案又覺得不太對 : 如果TLB 一次得出 : 那不是應該有個 0.9 乘在 (20+200) 前嗎? : 麻煩解惑 答案是(C)沒錯吧 假如TLB hit => 20 + 200 = 220 若TLB miss => 20 + 200 + 200 + 200 + 200 = 820 再把機率考慮進去 220*90% + 820*10% = 198+82 = 280ns -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.110.186

01/12 21:53, , 1F
喔!少了200 謝謝
01/12 21:53, 1F
文章代碼(AID): #1F3k9F3F (Grad-ProbAsk)
文章代碼(AID): #1F3k9F3F (Grad-ProbAsk)