edited by
11,863 views
11 votes
11 votes
Consider a computer system with $57$-bit virtual addressing using multi-level tree-structured page tables with $\mathrm{L}$ levels for virtual to physical address translation. The page size is $4 \mathrm{~KB}(1 \mathrm{~KB}=1024 \mathrm{~B})$ and a page table entry at any of the levels occupies $8$ bytes.

The value of $\mathrm{L}$ is ______________.
edited by

2 Answers

22 votes
22 votes

Given,

Virtual Address Space $=57$ bits

Page size  $=4$ KB =$12$ bits

Page number= $(57-12)=45$ bits

Page table entry= $8$ bytes.

Each page can contain =$\frac{4 KB}{8B}=\frac{2^{12}}{2^{3}}=2^9$ page table entries. So, we need $9$ bits to index the page table .

So, Number of levels = $\lceil \frac{45}{9} \rceil=5$ .

So ,Value of L is $5$ .

 

 

Answer:

Related questions