How did you select a page for paging(pageout)?
Posted: Fri Aug 14, 2009 2:44 am
Hello,
I found various algorithms for selecting a victim page. but I can't understand how they find it..from where?
1) I only have the page directory, page table. and each entry has not enough field to implement such algorithms..
then do I have to make extra data structure for each page frame?
for every page frames?
2) CLOCK algorithm says that the hardware will set an access bit, so it can find a page using that bit.
it means, CLOCK should to search every page in the page directory/page table whether it accessed or not,.
then, when it start to search that page frame??
in the page-fault ISR? or separated thread(maybe this is not possible..)?
3) LRU algorithm uses the linked list (am I right?) for every page frame..
and modify its linkage.
ok, here is same question..
does it make any extra data structure for every page frame and link each other? after linking them, everytime check the
access bit in a page descriptor? and modify the linkage of page list? "EVERYTIME SEARCH ALL PAGE?"
thank you..
I found various algorithms for selecting a victim page. but I can't understand how they find it..from where?
1) I only have the page directory, page table. and each entry has not enough field to implement such algorithms..
then do I have to make extra data structure for each page frame?
for every page frames?
2) CLOCK algorithm says that the hardware will set an access bit, so it can find a page using that bit.
it means, CLOCK should to search every page in the page directory/page table whether it accessed or not,.
then, when it start to search that page frame??
in the page-fault ISR? or separated thread(maybe this is not possible..)?
3) LRU algorithm uses the linked list (am I right?) for every page frame..
and modify its linkage.
ok, here is same question..
does it make any extra data structure for every page frame and link each other? after linking them, everytime check the
access bit in a page descriptor? and modify the linkage of page list? "EVERYTIME SEARCH ALL PAGE?"
thank you..