# Check the current value
cat /proc/sys/vm/swappiness
# Define the new one
sysctl vm.swappiness=0
# Disable SWAP, it'll take some times to clean the SWAP area
swapoff -a
# Enable the SWAP with the new value
swapon -a
# Check if well applied
cat /proc/sys/vm/swappiness