Skip to main content

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…

Consider a system with byte-addressable memory, 32-bit32\text{-bit} logical addresses, 4  kilobyte4\;\text{kilobyte} page size and page table entries of 4  bytes4\;\text{bytes} each. The size of the page table in the system in megabytes\text{megabytes} is___________.

    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.