recategorized by
4,550 views
4 votes
4 votes

For the implementation of a paging scheme, suppose the average process size be $x$ bytes, the page size be $y$ bytes, and each page 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. $\frac{x}{2}$
  2. $\frac{xz}{2}$
  3. $\sqrt{2xz}$
  4. $\frac{\sqrt{xz}}{2}$
recategorized by

1 Answer

5 votes
5 votes

Average amount of internal fragmentation per segment is y/2.

Average no of  pages per process segment is x/y.

Each page requires 'z' bytes of page table.

so each process segment requires page table size of xz/y bytes.

Total overhead per segment, therefore, due to internal fragmentation and page table entries, is

    xz/y + y/2

To minimise the overhead, differentiate with respect to page size, p, and equate to 0:
d(xz/y + y/2)/dy =    -xz/y2 + ½ = 0
    => y = √(2xz)

Answer (C)

So for example, if the average segment size were 256K, and the page table entry size were 8 bytes, the optimum page size, to minimise overhead due to page table entries and internal fragmentation, would be sqrt(2 × 256K × 8) = 2048 = 2K.

Answer:

Related questions

4.1k
views
1 answers
2 votes
makhdoom ghaya asked Jul 23, 2016
4,137 views
In a demand paging memory system, page table is held in registers. The time taken to service a page fault is $8$ m.sec. if an empty frame is available or if the replaced page is not ... ?$11.6$ m.sec. $16.4$ m.sec. $28$ m.sec. $14$ m.sec.
5.4k
views
1 answers
2 votes
makhdoom ghaya asked Jul 22, 2016
5,414 views
Which of the following conditions does not hold good for a solution to a critical section problem ? No assumptions may be made about speeds or the ... block other processes. Processes do not wait forever to enter its critical section.
1.8k
views
4 answers
2 votes
makhdoom ghaya asked Jul 22, 2016
1,828 views
A specific editor has $200 K$ of program text, $15 K$ of initial stack, $50 K$ of initialized data, and $70 K$ of bootstrap code. If five editors are started ... $335 K$1065 K$320 K$
1.1k
views
1 answers
2 votes
makhdoom ghaya asked Jul 22, 2016
1,076 views
Consider the following justifications for commonly using the two-level $CPU$ scheduling:I. It is used when memory is too small to hold all the ready processes.II. Because its performance ... $IV$I$ and $II$ $III$ and $IV$I$ and $III$