20. Paging: Smaller Tables Flashcards
Why is larger page tables not a good idea?
Although we are able to have lesser number of page tables, there will be internal fragmentation
What is internal fragmentation?
A situation when there is unused space in a page
Why is the hybrid approach of using segmentation and page tables bad?
There will still be internal and external fragmentation.
What is a page directory?
A data structure that is used in multi-level paging to map the addresses of page tables
What is multi-level paging?
A memory management technique that uses a hierarchy of page tables to map virtual addresses to physical addresses.
What is a page directory entry (PDE)?
Similar to a PTE, it has a valid bit and a PFN.
What are the advantages of multi-level page tables?
- Compact and supports sparse address spaces
- The page tables do not need to be in a contiguous block of memory
What are the disadvantages of multi-level page tables?
- Complexity
- Increased memory accesses when TLB misses
What is an inverted page table?
A memory management technique where there is a single page table that has an entry for each physical page. Each entry will have the mapping from virtual to physical and which process is currently using it