GATE CS 2024 Set 2 | Question 64

Operating Systems › Memory Management · NAT · 2 marks · Answer: 1028

  1. Question 64Operating Systemsnat2 marks
    32-bit system, 4 KB pages, 4-byte PTEs, 2-level page table (outer directory + inner tables), demand-paged inner tables (allocated only if they hold a valid PTE). A process accesses 2000 unique pages. X = min, Y = max number of pages across the two page-table levels. X+Y is ________

    Answer: 1028

    Solution

    Answer: 1028 Page offset bits; VPN bits split . An inner page table holds entries page. Outer directory is always 1 page. - Minimum: pack 2000 valid entries into as few inner tables as possible: inner tables -> . - Maximum: spread the 2000 pages so as many inner tables as possible each hold entry; there are only possible inner tables, and , so all are used -> .

More GATE PYQ on Memory Management

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2024 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →