Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

                         |__get_free_page = __get_free_pages

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? 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


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

Browse other questions tagged or ask your own question.