LWN.net Logo

Still waiting for swap prefetch

Still waiting for swap prefetch

Posted Jul 25, 2007 23:47 UTC (Wed) by sjlyall (subscriber, #4151)
In reply to: Still waiting for swap prefetch by xorbe
Parent article: Still waiting for swap prefetch

When I have 2GB of ram in my home desktop system, I never ever want to see Linux drop binaries from ram, and swap them back in from the binary text file. Or see it drop data pages to increase hdd cache in memory.

Turn off swap then if you feel that way. I've got no problem with my system swapping out the getty copies which will never be used and instead using the RAM to cache my mail files.

I have a bunch of stuff that includes running programs, program data and files that the CPU has to deal with. I want everything to go as fast a possible so whenever possible if the CPU wants some of that data it should be able to get it as quickly as possible which means it should be in RAM if at all possible. The better the kernel does this, the faster everything will run.


(Log in to post comments)

Still waiting for swap prefetch

Posted Aug 7, 2007 2:33 UTC (Tue) by xorbe (subscriber, #3165) [Link]

Even with swap off, kernel can drop the program text, and swap it in from the backing binary on disk -- all without a swap file.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds