3,278 views
9 votes
9 votes

In a 32-bit machine we subdivide the virtual address into 4 segments as follows: 
 

10-bit

8-bit

6-bit

8 bit

We use a 3-level page table, such that the first 10-bit are for the first level and so on.

  1. What is the size of a page table for a process that has 256K of memory starting at address 0?

How to solve such questions?? please someone answer it with proper explanation

2 Answers

Best answer
13 votes
13 votes

..................

selected by
0 votes
0 votes
  1. The page field is 8-bit wide, then the page size is 256 bytes.
  2. Using the subdivision above, the first level page table points to 1024 2nd  level page tables, each pointing to 256 3rd page tables, each containing 64 pages. The program's address space consists of 1024 pages, thus we need we need 16 third-level page tables. Therefore we need 16 entries in a 2nd level page table, and one entry in the first level page table. Therefore the size is: 1024 entries for the first table, 256 entries for the 2nd level page table, and 16 3rd level page table containing 64 entries each. Assuming 2 bytes per entry, the space required is 1024 * 2 + 256 * 2 (one second-level paget table) + 16 * 64 * 2 (16 third-level page tables) = 4608 bytes.

Related questions

3 votes
3 votes
0 answers
1
sushmita asked Jan 5, 2017
1,081 views
A computer system has a 36-bit virtual address space with a page size of 8K, and 4 bytes per page table entry.What is the maximum size of addressable physical memory in t...
0 votes
0 votes
1 answer
3
Markzuck asked Dec 22, 2018
1,356 views
for memory overhead in Multi level paging, for innermost table only 1 page size shall be counted na? and NOT the complete page table size?please explain the concept, than...
0 votes
0 votes
1 answer
4