Consider a system with byte-addressable memory, logical addresses, page size and page table entries of each. The size of the page table in the system in is___________.
GATE CSE 2015Operating System › Memory Management & Virtual MemoryVerified
GATE CSE 2015 PYQ: Consider a system with byte-addressable memory, 32 -bit 32\text{-bit} 32 -bit logical addresses, 4 kilobyte…
Answer
4
Approach
Determine the number of pages in the logical address space, then multiply by the page-table entry size. Since the memory is byte-addressable, a 32-bit logical address selects one of $2^32$ bytes.
The logical address space has $2^20$ pages. With 4 bytes per page-table entry, the table requires $2^22$ bytes, which equals 4 MB.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.