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)

## 1 Answer

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

### 4 Comments

@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?

Answer:

28 votes
5 answers
1
26 votes
6 answers
2
48 votes
6 answers
3
27 votes
4 answers
4
7,526 views