I agree that when you fill memory with running process and start to
swap, the performance can become so bad the system can become useless.
But, I am not sure there are any real rules for the swap with modern
virtual memory systems, i.e. systems that support logical swap.
Certainly, there use to be with the older swap systems where you had
to have enough memory for all the running swap processes in addition
to any "swap" processes.
But we have found swap useful anyway. I the past, with LSF, we have
used SIGSTOP as part of our preemption scheme. This would often cause
the preempted job to swap while the preempting job ran. Then, when the
running job completes, the other job can just resume running. Since we
are now using PBS, I am not sure if this is whow it is doing
premeption, but it is still a good use for swapping.
Jim Dodd