Skip to content
Official PYQ · 2016

GATE CS 2016 Set 1 Q47 — Memory Management and Virtual Memory

Explain with AI
Consider a computer system with 4040-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 4848 bits, then the size of the per-process page table is __________ megabytes.
View worked solution

Answer: 384

To find the size of the per-process page table, we calculate the number of page table entries and multiply it by the size of each entry:

  1. Determine the number of pages:
    Virtual Address size = 40 bits40\text{ bits}
    Page size = 16 KB=16×210 bytes=214 bytes16\text{ KB} = 16 \times 2^{10}\text{ bytes} = 2^{14}\text{ bytes}
    Number of pages in the virtual address space = 240214=226\frac{2^{40}}{2^{14}} = 2^{26}
  2. Determine the Page Table Entry (PTE) size:
    PTE size = 48 bits=488 bytes=6 bytes48\text{ bits} = \frac{48}{8}\text{ bytes} = 6\text{ bytes}
  3. Calculate the Page Table Size:
    Page Table Size = Number of pages×PTE size\text{Number of pages} \times \text{PTE size}
    Page Table Size = 226×6 bytes2^{26} \times 6\text{ bytes}
    Page Table Size in Megabytes (MB) = 226×6220 MB=26×6 MB=64×6 MB=384 MB\frac{2^{26} \times 6}{2^{20}}\text{ MB} = 2^6 \times 6\text{ MB} = 64 \times 6\text{ MB} = 384\text{ MB}

Thus, the size of the per-process page table is 384 megabytes.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions