Computer Architecture: Virtual Memory
Computer Architecture: Virtual Memory
Virtual Memory
Example (1):
Page fault: (7, 0, 1, 2, 3, 4, 0, 1, 7)
Example (2):
7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
----------------------------------------------------------------------
7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1
7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0
7 0 1 2 2 3 0 4 2 2 0 3 3 1 2 0 1 7
Page out 7 1 2 30 4 0 3 2
Page fault: (2, 3, 4, 2, 3, 0, 1, 0, 7)
Not Recently Used Replacement Algorithm
Replace the page that is not used recently.
0 1 2 3 0 1 4 0 1 2 3 4