1,118 views
1 votes
1 votes
Consider a byte addressable virtual memory system with 34-bit addresses where the first 23 bits are used as a page number, and the last 11 bits is the offset. Suppose the system using two-level paging, with first n bits (n>11) of the address used as an index into the first-level page table. Assume that a typical program uses 16MB memory. An expression in terms of n that gives the number of second level page-tables used by the typical program is given by

A  2^24 / 2^(34-n)
B  2^(n-11) x 2^11
C  2^(34-n-11) x 2^11
D  224 / 2^(34-n-11)

Some one please explain what this Question mean?

Answer is given as A

1 Answer

3 votes
3 votes

Consider the division |n|23-n|11|(Keep this in mind.)

The number of bits that have been used in second level page table for indexing pages of the program = 23-n

The size of the program covered by one frame of second level page table = 2^(23-n) * 2^11Bytes

The number of frames required to cover 16 MB of the program = 16MB / 2^(23-n)*2^11

=2^24/2^(34-n).

reference:

http://www.cis.upenn.edu/~lee/03cse380/exam3-v8.pdf

please ignore formatting error if any.Peace!!!!

Related questions

3 votes
3 votes
1 answer
3