[理工] [os] 94清大
A computer whose processes have 1024 pages in their address spaces keeps it's
page tables in memory. The overhead reading aword from the page table is 500ns
. In order to reduce the overhead, the computer has a TLB, which holds 32
(virtual page,physical page frame)pairs, and can do a look up in 100ns.
What hit rate is needed to reduce the mean overhead to 200ns?
個人的想法是:
設P為TLB的hit rate
如果TLB hit 存取時間100+500=600ns
如果TLB miss
存取TLB的時間加上存取一次page table加上一次memory的時間
100+500+500=1100ns
P*600+(1-P)*1100=200
可是參考書的答案是
P*100+(1-P)*600=200
我哪裡想錯了??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.13.191
→
01/07 19:32, , 1F
01/07 19:32, 1F
推
01/07 19:32, , 2F
01/07 19:32, 2F
→
01/07 19:33, , 3F
01/07 19:33, 3F
→
01/07 19:34, , 4F
01/07 19:34, 4F
→
01/07 19:35, , 5F
01/07 19:35, 5F
推
01/07 19:36, , 6F
01/07 19:36, 6F
→
01/07 19:37, , 7F
01/07 19:37, 7F
→
01/07 19:38, , 8F
01/07 19:38, 8F