On Thu, Aug 15, 2002 at 09:53:40AM +0200, Jean-Eric Cuendet wrote: > Is there a way to lock pages in memory so they are not swapped? mlock(2). > Is there a way to say to the kernel to reload swapped out pages back in memory? Use the memory on the page. > If I read back all my memory, will all the swap be back in the memory? Not necessarily. The kernel might page out some of your less frequently used pages in the process of faulting in new ones. (See also RSS limits.) > Is it enough to read ione byte/page to reload the entire page in memory? Yes. > Is it possible to tell the kernel the maximum amount of disk cache it should use? Not that I know of. This is a frequently-requested tweakable parameter, and while an ideal virtual memory system would never need to be tweaked by end users/administrators, I am a little surprised it isn't implemented, since I think few would claim the linux virtual memory system can't be improved further. :) (And no, Rik, I'm not volunteering to implement it myself. rmap meets my needs fine. :) -- Outlook users: please do not put my email address in your address book. This way, when you get infected with a virus, my address won't appear in the From: header. Thanks.
Attachment:
pgp00145.pgp
Description: PGP signature