作者bin272max (Ellison)
看板Grad-ProbAsk
標題[理工] 98成大OS
時間Fri Feb 15 13:59:51 2013
Assume a virtual memory addressing space of 8 Gbytes and
a physical memory addressing space of 2 Gbytes.
Let the size of a page be 2Kbytes.
What is the size of a page table in terms of the number of entries?
解答:
VM = 8G = 2^33
PM = 2G = 2^31
PageSize = 2K = 2^11
Page Table entries = 2^(33-11) = 2^22 entries
Page Table Size = 2^22 * entry size
我不懂的地方是,為什麼Page Table entries是Virtual Memory的8G除以PageSize?
這樣意思是VM entries數量 = PageTable entries數量?
解答中最後的entry size是指page size*8bit嗎?
不好意思因為翻書跟筆記都沒看到@@"
請高手指導...謝謝: )
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 115.82.8.38
推 lion15945:如果是最單純的Paging VM entries=PT entries沒錯阿 02/15 14:20
→ lion15945:PT entries問的是 PT有多少個"入口" 就是VM被分成幾個 02/15 14:22
→ lion15945:page的意思 02/15 14:22
→ bin272max:感謝lion大!! 02/15 14:27