Paging acts as indirection layer between virtual address space and physical address space. Given an address, the Operating System(OS)/Memory Management Unit(MMU) translates it to a primary memory location.
My questions are:
In the scenario that the page is absent in primary memory
- How does the OS know where to find the page on disk?
- Where does it store information for 1?(It is not stored in the page table entry). Links to code examples would be great!