In our previous readings, we learned that processes provide the illusion of a single, large, and private address space despite the fact that physical memory (DRAM) is shared amongst many processes. In this reading we’ll learn about virtual memory, a system that not only helps to provide this illusion but also has many other benefits.
Sections 9.1-9.5 (pp. 802-813) from the course textbook.
Each student will be responsible for learning and demonstrating proficiency in the following objectives PRIOR to the class meeting. The reading quiz will test these objectives.
The following objectives should be mastered by each student DURING and FOLLOWING the class session through active work and practice.
These exercises are geared towards mastering the BASIC learning objectives listed above. You are expected to submit them before class and it is highly recommended that you complete them before attempting the reading quiz.
What is the difference between an unallocated virtual page and an uncached virtual page?
What is the relationship between the memory management unit (MMU) and the page table?
Calculate the number of page table entries for the following scenarios. Make sure you show your work.
Assume that you have the following page table entries.
VP # | Valid | Read | Write | SUP |
0 | 0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 | 0 |
2 | 1 | 1 | 0 | 1 |
For each of the following accesses, determine whether it will result in a page fault, a segmentation fault, both, or neither. Explain why.