Lecture 3 Flashcards
Page Fault
page is not currently loaded into a physical address space
What detects page faults?
MMU
What does the exception handling for page faults?
OS-kernel level applications
How does OS handle page fault?
Tries to make page accessible and map it to physical memory. If page cant be accessed process is terminated and an illegal memory access error thrown.
Name the three types of page faults.
compulsory faults, capacity faults, and policy faults.
What is the most common type of page fault?
Compulsory fault
Compulsory fault
Required page is not in main memory
How to avoid a compulsory page fault?
Pre-fetching
Pre-fetching
Frequently-used pages are loaded into cache
memory accessible by the page table.
Capacity faults
Main memory is full and pages must be swapped out for the required page to be swapped in (page replacement algorithm).
Policy fault
Page is prematurely swapped out of main memory because of the replacement policy (algorithm).
What carries out the scheduling of page resources?
page replacement policy (an algorithm run by the memory management unit)
Fully associative memory mapping
Any page in virtual memory can be translated to any frame in physical excluding frames dedicated to kernel level applications.
Page Table Base Register (PTBR)
tells the MMU whether the page is already in memory or not.
Translation Lookaside Buffer (TLB)
special memory cache for storing frequently used
pages.