Question 14Asked in UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)

For the implementation of a paging scheme, suppose the average process size be x bytes, the page size be y bytes, and each entry requires z bytes. The…

For the implementation of a paging scheme, suppose the average process size be x bytes, the page size be y bytes, and each entry requires z bytes. The optimum page size that minimizes the total overhead due to the page table and the internal fragmentation loss is given by :
  1. Ax/2
  2. Bxz/2
  3. C√(2xz)
  4. D√(xz)/2
Show answerHide answer

Correct answer: (C) √(2xz)

Explanation

Average internal fragmentation per process is y/2. A process has x/y pages and each page-table entry needs z bytes, so the page table takes xz/y bytes. Total overhead = xz/y + y/2. Setting d/dy (xz/y + y/2) = –xz/y² + 1/2 = 0 gives y = √(2xz).

From UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions)

This is question 14 of UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.