Hey all -

I am trying to understand the code path for an anonymous memory page fault. 
Here is my understanding: as_fault() calls segvn_fault(), segvn_fault() calls 
segvn_faultpage() to bring in the anonymous pages and load the translations. 
segvn_faultpage() actually calls anon_getpage() to bring the page in for the 
case of non copy-on-write.

So if I am not wrong, this sequence of events happens for major page faults 
(translation not in MMU, page not in memory). What about the minor faults 
(translation not in MMU, page in memory). My guess is that the code path is the 
same with the difference that anon_getpage finds that the page is already in 
and therefore it doesn't need to bring it so segvn_faultpage() will only load 
the translations. Is that true? 

Thanks a lot

-Haris
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to