Javatpoint Logo
Javatpoint Logo

Finding Optimal Page Size

We have seen that the bigger page table size cause an extra overhead because we have to divide that table into the pages and then store that into the main memory.

Our concern must be about executing processes not on the execution of page table. Page table provides a support for the execution of the process. The larger the page Table, the higher the overhead.

We know that,

There will be 1 million pages which is quite big number. However, try to make page size larger, say 2 MB.

Then, Number of pages in page table = (2 X 2 ^ 30)/(2 X 2 ^ 20) = 1 K pages.

If we compare the two scenarios, we can find out that the page table size is anti proportional to Page Size.

In Paging, there is always wastage on the last page. If the virtual address space is not a multiple of page size, then there will be some bytes remaining and we have to assign a full page to those many bytes. This is simply a overhead.

Let's consider,

The number of pages will be 9 although the 9th page will only contain 1 byte and the remaining page will be wasted.

In general,

On an average, the wasted number of pages in a virtual space is p/2(the half of total number of pages).

For, the minimal overhead,

Hence, if the page size √(2.S.e) bytes then the overhead will be minimal.

Next TopicVirtual Memory

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials

B.Tech / MCA