In checkpage() in common/os/vm_pageout.c a page that is to be freed has its attributes checked and if it's found that the P_MOD bit is set the page is paged out by queuing a request to the pageout thread. Is the P_MOD bit reset anywhere during this process and if so where? Presumably next time checkpage() deals with this page it will find it unreferenced and unmodified such that it may be unloaded via a call to hat_pageunload(). Speaking of which why is hat_getattr() immediately following the unload in checkpage()? Is this in case the page was written to between the time the P_MOD was discovered and the page was unloaded? (If it was unloaded how is it written to?)
Neale This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code