Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. Consider a machine with 64 Mbyte physical memory and a 32-bit virtual address space. If the page size is 4 kbyte, what is the approximate size of the page table?
    1. 16 Mbyte
    2. 8 Mbyte
    3. 2 Mbyte
    4. 24 Mbyte
Correct Option: C

Virtual Address Space = 32 Bit, Page size = 4kb = 22 x 210 = 212

PTE = V.A.S. / Page Size =
232
= 220 .....eq.(1)
212

Physical memory size = 64MB = 26 x 210 x 210 = 226
Then No. of Frames in Physical Memory =
226
= 214
212

And page table needs to store the address of all these 214 page frames. Therefore, each page table entry will contain 14 bits address of the page frame and 1 bit for valid-invalid bit. we suppose 16 bit require it means 2 bytes (approx.).
So Size of Page table = Total PTE (from eq (1) x Size of page table entry = 220 x 2B = 2MB
Hence (c) is correct option.



Your comments will be displayed only after manual approval.