Answer: 36
To find the length of the virtual address, we can break down the problem into the following steps:
Step 1: Find the size of the Frame Number (Translation)
- Physical Address Space: 32 bits
- Page Size: 8 KB=213 bytes (which means the page offset is 13 bits)
- Frame Number (Translation) bits:
Physical Address−Page Offset=32−13=19 bits
Step 2: Calculate the Page Table Entry (PTE) Size
Each page table entry contains:
- 1 valid bit
- 1 dirty bit
- 3 permission bits
- 19 bits for translation (frame number)
Total PTE size=1+1+3+19=24 bits=3 bytes
Step 3: Calculate the Number of Entries in the Page Table
The maximum size of the page table is 24 MB.
Number of entries (N)=PTE SizeMaximum Page Table Size=3 bytes24×220 bytes=8×220=223 entries
Step 4: Determine the Virtual Address Length
- Since there are 223 entries in the page table, the Virtual Page Number (VPN) requires 23 bits.
- The page offset is 13 bits.
Virtual Address Length=Virtual Page Number bits+Page Offset bits=23+13=36 bits
Thus, the length of the virtual address supported by the system is 36 bits.