Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am supposed to answer for homework which algorithm is implemented in Linux for the virtual memory page substitution and also give some extracts of the code to prove that.

After some research I have found that the following functions are called when a page fault occurs:

do_page_fault
                |handle_mm_fault
                   |pte_alloc
                      |pte_alloc_one
                         |__get_free_page = __get_free_pages
                            |alloc_pages
                               |alloc_pages_pgdat
                                  |__alloc_pages
                                     |wakeup_kswapd

But I tried to follow this sequence and at some point I got totally lost. Is there any reasonable extract of code that could prove my point?

share|improve this question
    
Prove which point? kernel.org/doc/gorman/html/understand/understand013.html#toc66 might be interesting to you. –  Andy Friese Dec 15 '12 at 2:12
    
Actually I did not know which point. By "point" I meant to prove that the substitution policy is whatever it is. This document gives me enough material. Thanks! –  Izabela Dec 15 '12 at 3:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.