I started 4 processes doing heavy computations. The machine has 4 full cores, and each process is single-threaded, so they don't compete for CPU. However I realized that they require more memory than physically exist in this system (16GB). Now their allocated address space combined is about 20GB, so each of them has part of their address space swapped out.
So I decided to suspend one of those processes and I wanted to put its memory pages to swap, so that physical memory would serve only the three other processes. I assume that this will eventually happen while the three alive processes will try to access swapped-out pages. But I'd like to force it so that the computations wont have to wait for IO.
Is it possible to force a suspended process' memory go to swap? (so that there wont be IO when alive processes will do new allocations)
Is it possible to force an alive process' memory to come back to RAM?
This is Debian SID.