作者mqazz1 (无法显示)
看板Grad-ProbAsk
标题Re: [理工] [OS] 98交大 作业系统
时间Thu Jan 12 21:38:20 2012
※ 引述《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
1F:推 onlyeric23:喔!少了200 谢谢 01/12 21:53