推 mqazz1:謝謝 05/10 22:12
※ 引述《mqazz1 (無法顯示)》之銘言:
: suppose that you wish to design a virtual memory system with the following
: 1. the size of a page table entry is 4 bytes
: 2. each page table must fit into a single physical frame
: 3. the system must be able to support virtual address spaces as large as
: 2^38 bytes
: suppose that you decide to use a multi-level paging scheme
: what are the respective minimum page size that your system must have if you
: determine to use two levels or three levels of page tables?
: 請問這題應該怎麼解呢?
: 謝謝
2 level的:
假設一個page大小有a bytes,所以一個page table有a/4個entry
又因為記憶體系統用 2 level 系統,所以此系統有 (a/4)^2 *a bytes容量
(a/4)^2 *a >= 2^38
a >= 16384
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.41.223.128