Question

A computer system has a 36-bit virtual address space with a page size of 8K, and...

A computer system has a 36-bit virtual address space with a page size of 8K, and 4 bytes per page table entry.

  1. How many pages are in the virtual address space?
  2. What is the maximum size of addressable physical memory in this system?
  3. If the average process size is 8GB, would you use a one-level, two-level, or three-level page table? Why?
  4. Compute the average size of a page table in part c above
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) How many pages are in the virtual address space?

Normally a 36-bit Virtual Address Space could address

236 Bytes

The Page size given is 8KB. i.e., 1 KB = 1000 bytes which is equivalent to 210 bytes

Then for 8KB = 21 x 21 x 21 x 210 = 213 Bytes

The number of pages in the Virtual Address Space for the Page size of 8KB = 236 / 213 = 223

(b) What is the maximum size of addressable physical memory in this system?

For 4 bytes per Page Table Entry, the number of pages that can be referred to is 232 pages. As each page size is now 213 Bytes, the maximum size of addressable physical memory in this system is 232 x 213 = 245 Bytes.

(c) If the average process size is 8GB, would you use a one-level, two-level, or three-level page table? Why?

(d) Compute the average size of a page table in part c above

Average Process Size = 8GB, and we are having 233 pages.

One-level page table:

Available Virtual Address Space = 223 pages.

We are using 4B for each Page Table Entry.

Now the Page Table Size = 223 x 4 = 223 x 22= 225. = 33.554432 MB

As it is not cost-effective, it cannot be considered. It is taking 1 in 242 times of its memory space.

Two-level page table:

Average Process Size = 233 pages with 8GB data. As the Page Size given is 213 pages.

We can assume that the overall size of all the varying pages is 233 Bytes.

Accordingly, we now get 233 / 213 = 220 Pages.

Here the address shall be partitioned into 12, 11, and 13.

It can be shown that the size of one low-level piece of the Page Table is 211. Hence, it is needed 220 / 211 = 29

Accordingly, now the total size of the Page Table shall be given as

The total size of the page table is then:

Size of the External page table = 1x212x22 added with Size of the Internal Page Table = 29 x 211 x 22 , we could get the result as 214 + 222 which is roughly 4.210688 megabytes

Three-Level Page Table:

Here the address shall be partitioned into 8,8,7, and 13.

As above, it is needed 220 / 27 = 213.

It can be seen that the Two-level Page table would reference 28 Three-level Page Table. Hence it is needed 213/ 28 = 25 Two-level pages. Now the overall size of the Page Table is given as

for the External page table:

1 x 28 x 22

for the Two-level page table:

25 x 28 x 22

for the Internal page table:

213 x 27 x 22

which is roughly equivalent to 4 megabytes.

From the above calculations, Two-level and Three-level page table requires less space than One-level Page table. As our Virtual address space is small, and based on the cost-effective solution, it's better to choose the Two-level Page Table.

Add a comment
Know the answer?
Add Answer to:
A computer system has a 36-bit virtual address space with a page size of 8K, and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT