GATE Computer ScienceHardGATE CS

A process of size s = 4 MB runs under paging with a one-level page table in which each page-table entry occupies e = 8 bytes. The wasted memory per process is roughly (s/p)·e for the page table plus p/2 for internal fragmentation in the last page. Which page size p minimises this overhead?

  1. A. 16 KB
  2. B. 4 KB
  3. C. 2 KB
  4. D. 8 KB

Correct answer: D. 8 KB

Overhead(p) = s·e/p + p/2. Setting the derivative −s·e/p² + 1/2 to zero gives p = √(2·s·e) = √(2 · 2²² · 2³) = 2¹³ = 8192 bytes.

More Computer Organization and Architecture questions

Exams that ask this topic