3.2. Virtual Memory
3.2. Virtual Memory
2 Virtual Memory
– Background
– Demand Paging
– Advantages of VM: Process Creation
– Page Replacement
– Allocation of Frames
– Thrashing
0
1
0
0
page table
During address translation, if presence bit in page table
entry is 0 page fault.
Graph of Page
Faults Versus
The Number of
Frames
5
o Used for measuring how well your algorithm performs.
o How can you know what the future references will be?
1 1 4 5 1 1 5 4
es2
3 fra
2 4 i n
Usin
Us
o more frames more page faults 4 4 3
o Another example FIFO page replacement algorithm.
referenced
unreferenced