Disable any performance tuning services, such as tuned.
As root, change the current value in the operating system.
In /etc/sysctl.conf, add the line vm.swappiness =
0.
This ensures the correct setting is applied when the system restarts.
If performance tuning is required, set
vm.swappiness by cloning the existing performance profile,
and then add vm.swappiness = 0 to the new profile's
/usr/lib/tuned/profile-name/tuned.conf file.
To select the updated profile, run the command tuned-adm
profile customized_profile.