[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

removing clean anonymous pages




 Hi,

   I see in try_to_swap_out() (linux 2.4.19), that when we remove a clean
anonymous page, we clear the pte entries. So when a page is swapped out to
the disk and then brought back to the memory. If that page is again
selected for removal during page replacement, then if we just clear the
pte entries wont we be losing the data. I think I have understood it
wrong. Can you please try to explain me this.

 Thanks,
 Raghu
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/