INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 4 views
Virtual Memory, Multi-Level Paging & TLB Effective Access Time
Virtual/physical address bit calculations, optimal page size for multi-level page tables, EMAT, and Belady’s anomaly.
Page Replacement Algorithms & Belady’s Anomaly
| Algorithm | Suffers from Belady’s Anomaly? | Stack Property? | Notes |
|---|---|---|---|
| FIFO | 🚨 YES (e.g. 3 vs 4 frames on 1,2,3,4,1,2,5,1,2,3,4,5) | No | Oldest loaded page evicted |
| Optimal (OPT / Belady) | No | Yes | Provably minimum page faults (non-causal benchmark) |
| LRU (Least Recently Used) | No | Yes | Approximated in hardware using Reference/Clock bit |
📐 Quick Revision Formula Sheet
Number of Pages & Frames
💡 Page Offset bits = log_2(Page Size)
TLB Effective Memory Access Time (1-Level Page Table)
💡 For k-level page table, TLB miss takes (k + 1) memory accesses!
#OS#Paging#Virtual Memory#TLB#NAT
🎯 Practice PYQs on This Topic (1)
Q1.GATE CS OS TLBNATMEDIUM
+2 Marks • No NegativeA paging system uses a single-level page table in main memory ( access time) and a TLB ( lookup time) with a TLB hit ratio of . Assuming sequential TLB-then-memory lookup, what is the Effective Memory Access Time (EMAT) in nanoseconds?