Operating Systems · Chapter 9
Paging & Address Translation Visualizer
Trace how a virtual address is split into page number and offset, checked in the TLB, resolved through the page table, and converted into a physical address.
Translation Flow
Virtual address–
Page + offset–
TLB lookup–
Page table–
Physical address–
Enter an address and translate it.
Page Table
| Page | Present | Frame | Valid range |
|---|
TLB
| Page | Frame | Age |
|---|
The TLB stores recently translated page → frame mappings. This demo uses a small LRU-style TLB.
Address Details
Page number–
Offset–
Frame number–
TLB state–
Virtual address (binary): –
Physical address (binary): –
Concept Guide
Page number: floor(virtual address / page size).
Offset: the position inside the selected page.
TLB hit: the page-to-frame mapping is already cached, so page-table lookup can be skipped.
TLB miss: the page table must be consulted. If the page is present, the mapping can then be inserted into the TLB.
Page fault: the page-table entry says the page is not currently in physical memory.