Page Faults
- when page is not present
- hardware records the address and raises a page fault
- operating system will
- pick an empty frame or a page to evict
- write back if dirty
- load the page and update the page table
- restart the instruction
- make sure page table and translation look-aside buffers are updated
- when evicting...
- write back any changes
- invalidate ()
- if TLB is modified, apply that to page table
- invalidate the translation
- Similarly, we have LRU, FIFO, Random approach like Cache Evictions
- use pseudo-LRU algorithm
- Reference: H & P, "Computer Organizations," 3rd, Ed.
Comments