To review the value of swappiness can be seen by running the following commands
# cat /proc/sys/vm/swappiness
To modified by running the following command (0 will prevent swapping unless absolutely required)
# echo 0 > /proc/sys/vm/swappiness
To make the settings permanent
vm.swappiness=0