CS FundamentalsHardGATE CS · Advanced

A process uses 100 MiB of memory. A page-table entry is 8 bytes, and on average half of the last page is wasted. Among page sizes that are powers of two, which size gives the smallest total of page-table space plus internal fragmentation?

  1. A. 16 KB
  2. B. 32 KB
  3. C. 64 KB
  4. D. 4 KB

Correct answer: B. 32 KB

Overhead = s e / p + p / 2 is minimised near p = sqrt(2 s e) = 40960 bytes; comparing the neighbouring powers of two: 4 KB: 206848, 8 KB: 106496, 16 KB: 59392, 32 KB: 41984, 64 KB: 45568.

More Operating Systems questions

Exams that ask this topic