Temporary files: RAM or disk?
Temporary files: RAM or disk?
Posted Jun 7, 2012 13:28 UTC (Thu) by Jonno (subscriber, #49613)In reply to: Temporary files: RAM or disk? by njs
Parent article: Temporary files: RAM or disk?
If you have enough free memory at the time you want to swap in that process, try to run "sudo swapoff -a ; sudo swapon -a", it will sequentially read in all swap to memory, no random access.
I find that if I have two processes with large working sets causing swaping, and kill one them, doing a swapoff will get the other one performant again much faster than letting it swap in only the stuff it needs as it needs it.