Back
Next
VM Table layout example
16 Meg virtual memory space. 2^24
1 Meg physical memory. 2^20
16 K page size. 2^14
2^24 / 2^14 = 2^10 - 1024 virtual pages (1024 slots in table).
2^20 / 2^14 = 2^6 - 64 page frames. (6 bit frame pointer).
Table size 1024 slots *
( 6 bit pointer + 1 bit P/A flag + 1 bit dirty flag )
Additional storage for time stamp or other aging data.
Table kept in unswappable memory or a separate memory area, such as
a custom cache for virtual memory logic.
Given a memory access, its address is parsed into a virtual memory
page pointer and an index or offset into the memory page.
Top 10 bits of an @ point to the page table entry
which contains a 6 bit frame pointer.
Lower 14 bits become the offset into the physical (and virtual) page frame.