4 KB = 2^12 bytes, so the offset is 12 bits and the page number is 32 - 12 = 20 bits, giving 2^20 (about 1 million) pages.
With 4-byte page table entries, a flat page table takes 2^20 x 4 bytes = 4 MB per process, which is wasteful when most of the address space is unused.
Fix: use a multilevel page table (next question), where only the used parts of the table exist.
Loading…