8,478 views

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$

### 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)

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

@raushan sah

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

2 level paging is used here right?

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