1 year ago
#153368
Arturo
How to know if a page table entry has been modified in XV6?
I'm trying to implement On Demand paging with NRU (not recently used) algorithm.
It picks a page table entry based on two factors:
- If it has been referenced recently.
- If it has been modified at all.
The former can probably be set in the walkpgdir function which is what xv6 source code uses to get the page table entry for a Virtual Address.
But I'm not sure how to identify if and when a Page table entry has been modified.
I know that xv6 use x86 as a base and that has support for a PTE_D/dirty bit(as in the pic) which identifies if a page table entries has been modified or not. But that is not mentioned at all in the xv6 source.
x86
operating-system
paging
xv6
page-tables
0 Answers
Your Answer