[理工] 98成大OS

看板Grad-ProbAsk作者 (Ellison)時間13年前 (2013/02/15 13:59), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
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

02/15 14:20, , 1F
如果是最單純的Paging VM entries=PT entries沒錯阿
02/15 14:20, 1F

02/15 14:22, , 2F
PT entries問的是 PT有多少個"入口" 就是VM被分成幾個
02/15 14:22, 2F

02/15 14:22, , 3F
page的意思
02/15 14:22, 3F

02/15 14:27, , 4F
感謝lion大!!
02/15 14:27, 4F
文章代碼(AID): #1H7SxPZ1 (Grad-ProbAsk)