I have some questions regarding Linux's use of the swap partition. I am using Linux ES 3 on a 2 CPU machine w/ 2 GB RAM and a 2 GB swap partition.
1.) I just killed a large process on my server, but 5 additonal MB of swap were consumed as a result (though about 100 MB of physical RAM was freed up). Is this normal? Why did this happen?
2.) After restarting the same process a few times, I noticed that, after one restart, a few MBs of swap were freed, but almost no physical RAM was freed, the second time, #1 happened. Why?
3.) With a system running many looping processes (I have checked these procs for memory leaks) what is the normal behavior over time of the swap and physical memory (should one decrease w/ one increasing, etc)?