[理工] [OS]Memory一問

看板Grad-ProbAsk作者 (predator')時間15年前 (2011/02/04 21:49), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串1/1
先祝大家新年快樂! 可憐的考生剩不到兩周了,外面還在喧鬧慶祝新年,真是辛苦大家了。 Consider the operation of the computer memory paging system with 64 bits address space,with 16KB size pages and 256MB main memory. (a)If an inverted page table is used for the system,how many entries does the table have? (b)If one-level physical page table is used,how many entries does the table have? 這題給的答案是: ANS: (a)256MB/16MB=16K (b)16K=2^14 2^64/2^14=2^50 我的想法跟她的答案剛好相反,為什麼inverted page table要看main memory有多大呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.176.14.222

02/04 21:57, , 1F
invertes page table看有幾個frame就是幾個entry
02/04 21:57, 1F

02/04 21:58, , 2F
d
02/04 21:58, 2F

02/04 21:58, , 3F
而frame的數量就是physical memory/page size
02/04 21:58, 3F

02/04 21:59, , 4F
inverted是以physical 為紀錄對象 physical memory 有多大
02/04 21:59, 4F
文章代碼(AID): #1DJ0Fnm6 (Grad-ProbAsk)