Memory: allocation, paging and virtual memory
Logical and physical addresses, contiguous allocation and fragmentation, paging with a TLB, and virtual memory with page replacement and thrashing.
About 8 hours of study
Learning objectives
- Translate addresses with base and limit, and with a page table
- Place processes with first, best and worst fit
- Count page faults for FIFO, LRU and the clock algorithm
Lessons
- 1
Memory: addresses and allocation
Logical and physical addresses, base and limit registers, fixed and variable partitions, first fit, best fit and worst fit, and internal and external fragmentation.
- 2
Paging Intermediate
Pages and frames, the page table, splitting an address into page number and offset, the TLB and effective access time, and multi-level page tables.
- 3
Virtual memory and page replacement Intermediate
Demand paging and what happens on a page fault, its cost, the FIFO, Optimal and LRU replacement algorithms, Belady's anomaly, and thrashing.
Module practice
- Base and limit checkEasy
- First fitMedium
- First, best and worst fitHard
- Translate addressesEasy
- TLB hits and average timeMedium
- Two-level address translationHard
- Page faults with FIFOEasy
- Page faults with LRUMedium
- Second chance (clock)Hard
Module quiz
‹ Synchronization and deadlockInput and output, disks and files ›