White RoomNEW

Twelve Kilobytes Of Tables

A 32-bit machine, 4 KB pages, 4-byte page-table entries, two-level paging. The virtual address splits like this:

Virtual address layout: 10 bits page-directory index, 10 bits page-table index, 12 bits offset bits 31..22 bits 21..12 bits 11..0 dir index table index offset 1024 PDEs 1024 PTEs

A process maps exactly two regions: code, data and heap occupying the low 3 MB, and an 8-page stack at the very top of the 4 GB address space.

How much physical memory do this process's page tables occupy?