Subject: Re: How do I supress/shrink VM Page Cache for large files?
To: None <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 06/13/2003 06:23:54
> der Mouse is right except for certain ocasions/enviroments where you
> don't know when you'll need free memory pages.
Even that doesn't matter, provided you know you can take them away
whenever you want. Push their contents to disk, make sure nobody's got
them mapped, and you don't have to "start VM/cache synchronization" to
reclaim one; you just need to note that you no longer have an in-core
copy of that page lying around, and clear it. (I do know how bad it
can get under the wrong circumstances; some of the work I did involved
cases where the OS _did_ run out of free pages. We ran into some
rather unpleasant livelocks under certain stress tests.)
Now, I don't know whether that is what uvm actually does in the case at
hand. But it certainly could in theory.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML firstname.lastname@example.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B