[理工] [OS]-page table size!

看板Grad-ProbAsk作者 (全身銅臭味)時間16年前 (2010/02/07 10:12), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
關於求page table size 有兩種答案? 如: 32-bit virtual byte address 4-KB pages 30-bit physical byte address What is the total size of the page table for each process in this machine, assumig that the valid,protection,dirty,and use bits take a total of 4 bits and that all the virtual pages are in use? (Assume that disk addresses are not stored in the page table) 解1: page數=2^32/2^12=2^20 page 1 page size=4bit+30bit-12bit= 22bit 近似於 24bit=3byte ←我的問題所在 page table size =2^20*3Byte 解2: page數=2^32/2^12=2^20 page 1 page size=4bit+30bit-12bit= 22bit ←我的問題所在 page table size =2^20*22bit 請問兩種解都是可行的嗎? --

01/24 20:22,
不然你先過年好了!!
01/24 20:22

01/24 20:24,
簽名檔有控制碼@@
01/24 20:24

01/24 20:25,
嗯...沒有控制碼呀 是控制碼的話五樓剁雞雞
01/24 20:25

01/24 20:26,
嗯...沒有控制碼呀 是控制碼的話五樓剁雞雞
01/24 20:26

01/24 20:26,
五樓剁雞雞
01/24 20:26

01/24 20:26,
靠北喔...
01/24 20:26
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.195.36.124 ※ 編輯: eric111043 來自: 123.195.36.124 (02/07 10:12)

02/07 10:26, , 1F
如果是求page table應該要使用第一種方法,因為在他是
02/07 10:26, 1F

02/07 10:26, , 2F
在memory內,所以up to full word。
02/07 10:26, 2F

02/07 12:03, , 3F
感謝!
02/07 12:03, 3F
文章代碼(AID): #1BRY5sOa (Grad-ProbAsk)