Re: Page cache and swapping

Krzysztof Strasburger (strasbur@chkw386.ch.pwr.wroc.pl)
Thu, 26 Jun 97 15:04


I'm very grateful for all comments about problems with freeing shared
memory. I have still no answer to the question about removing the
page cache page from processes page table, if page->count=1.
Does it mean that informations in mm.h are wrong and page->count=1
for pages, which do not belong to any process and are still in the
page cache (the swapping mechanism sets the present bit in the page table
to zero and the page still remains in memory)?
It would mean that (if swapping is inactive) any code page belonging to any
process is shared until all processes using it terminate (ie. page->count
=number_of_processes_using_the_page+1)?
Krzysztof