Memory Management
Virtual Memory Simulation
Interactive simulation of virtual memory address translation with page tables and physical memory management.
Memory Configuration
Logical Addresses
#1
#2
#3
#4
#5
#6
#7
#8
Step
Address
Action
Page Table
| Page # | Frame # | Valid | Referenced |
|---|
Physical Memory Frames
Ready to Simulate
Configure your virtual memory settings and logical addresses, then click "Run Simulation" to see the address translation process.
Virtual Memory Concepts
Key Concepts
- Logical Address: Address generated by the CPU
- Physical Address: Actual memory location
- Page: Fixed-size block of logical memory
- Frame: Fixed-size block of physical memory
- Page Table: Maps logical pages to physical frames
- Page Fault: Occurs when accessed page is not in memory
University Exam Tips
- Show address translation step by step
- Calculate page number = logical address / page size
- Calculate offset = logical address % page size
- Draw page table and memory layout diagrams
- Calculate page fault rate and hit ratio
- Explain advantages of virtual memory
Formula Reminder:
Page Number = Logical Address ÷ Page Size
Offset = Logical Address MOD Page Size
Physical Address = Frame Number × Page Size + Offset