GATE Computer ScienceHardGATE CS (PYQ pattern)
A 32-bit machine uses a 2-level page table with 4 KB pages and 4-byte entries (10 + 10 + 12 bit split). A process uses exactly 4 MB + 8 KB of contiguous virtual memory starting at virtual address 0, plus one separate 4 KB page at address 0xFFFFF000. How many bytes of page-table pages must be allocated (count the top-level table)?
- A. 8192
- B. 12288
- C. 16384
- D. 20480
Correct answer: C. 16384
4 MB + 8 KB = 1026 pages needing 2 second-level tables (1024 pages each = 4 MB, then 2 pages in a second table → 2 tables); the page at 0xFFFFF000 needs a third second-level table. Total = 1 top-level + 3 second-level = 4 pages of 4096 = 16384 bytes.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Which of the following statements about performance are correct? I. A lower CPI always means a faster machine. II. Execution time =…
- A DMA controller in burst mode moves 4-byte words at one word per 40 ns bus cycle from a device producing 10 MB/s (1 MB = 10⁶ B). The CPU…
- A 256 KB, 8-way set-associative write-back cache has 64-byte blocks and 36-bit physical addresses. Each line stores its data, tag, a valid…
- A system has 44-bit virtual addresses, 4 KB pages and 8-byte page-table entries. Every level of its multi-level page table except the top…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has full forwarding (EX/MEM and MEM/WB to the ALU inputs), so only a load followed…
- A write-through, no-write-allocate data cache sends every store to memory. 10% of instructions are stores and 20% are loads (load miss…