I have been asked several times about reducing the “swapiness” on a Linux machine to make the machine more responsive. So here is a post on how to do that. Remember just because you can does not make it a good thing to do.
If the machine has 8GB or more RAM turn down the swapiness. That is, if you do not want the system using swap until only 10-15% of RAM is left unused. Then this is the post for you.