I'd like to know if it's possible to bring pages from a particular process into main memory, or to set parameters for a given process, or class of process so that it will not be swapped out.
If what you're trying to do is improve the performance of a process, I'd recommend
You can also influence the kernel's tendency to swap in general by setting its swappiness.
You might also find this question and its answers helpful.
|show 2 more comments|
You can unswap a process by reading all of its memory pages.
Normally it would be a bit burdensome (reading