I have already set vm.swappness
to 0, but the system still uses swap after sometime the rest of memory is filled by cache. This leads to high load and high latency, probably because I put SWAP and the system on the same hard disk?
I have read through https://help.ubuntu.com/community/SwapFaq/#What_is_swappiness_and_how_do_I_change_it.3F And I found "The Linux kernel automatically moves RAM reserved by programs--but not really used--into swap, so that it can serve the better purpose of extending cached memory." Is this the true reason? How can I avoid this so I can still use swap for unforeseeable circumstances?