Hi Mulyadi, Thanks for your reply. What I could conclude from your reply is that if there is any mmaped file, it will be resynced and then the page will be discarded. What if the dirty page is a page containing data section from code? Is OOM inevitable in this scenario? The problem that I am facing is not consistent. Out of some 30 runs of few of the applications, the OOM occurs, though there is request for just one page. Why the behavior is not consistent? > - If it is an anonymous page, it will be kept on RAM unless the user explicitly ask it to be freed. Does it mean a malloced page? And freeing is done tho' free()? What role is played by overcommit_memory in /proc/sys/vm in such scenarios? Regards, Abu. Abu M. Muttalib Associate, Aftek Infosys Ltd., Pune, India Email: abum@xxxxxxxxx -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx]On Behalf Of Mulyadi Santosa Sent: Wednesday, May 10, 2006 11:50 PM To: Abu M. Muttalib; kernelnewbies@xxxxxxxxxxxx Subject: Re: Re: Implementation of Virtual Memory on Linux Hi Abu... > How the used pages reclaimed? Say if there is no swap space. Good question. I answer this because without looking at the codes: If we don't enable swap, I think this will happen: - If the page belongs to page cache, I think it will be discarded, but first the kernel will make sure the data is sync-ed to the backing file - If the page has backing file (in case on mmaped file), the page will be discarded after its data have been sync-ed - If it is an anymous page, it will be kept on RAM unless the user explicitly ask it to be freed. Guys, CMIIW... regards, Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/