in Operating System edited by
8,478 views
23 votes
23 votes

In a virtual memory system, size of the virtual address is $32$-bit, size of the physical address is $30$-bit, page size is $4$ Kbyte and size of each page table entry is $32$-bit. The main memory is byte addressable. Which one of the following is the maximum number of bits that can be used for storing protection and other information in each page table entry?

  1. $2$
  2. $10$
  3. $12$
  4. $14$
in Operating System edited by
8.5k views

1 comment

frame Size = Page Size = 4Kbytes = 2'12 bytes

Physical Address Size = 2'30 bytes

number of frames = Physical Address/Frame Size

                          = 2'30/2'12=2'18 frames

numbers of bits required for frame = 18 bits

Page Table Entry Size =  number of bits for frame  + other information

other info = 32 - 18 = 14 bits

So Ans is (d)
0
0

1 Answer

40 votes
40 votes
Best answer

Answer is (D).

Page table entry must contain bits for representing frames and other bits for storing information like dirty bit,reference bit etc

No. of frames (no. of possible pages) $=$ Physical memory size/ Page size $=$ $2^{30}$$/$$2^{12}$= $2^{18}$

$18+x=32$     (PT entry size=$32$ bit)

$x =14$ bits

edited by

4 Comments

@raushan sah

It is already given in the question ('size of each page table entry is 32-bits').It is 32 bits.

1
1
2 level paging is used here right?
0
0

Why do you think so rohith1001 that 2 level paging is implemented here?

0
0
Answer:

Related questions