Disable all performance-tuning services, like tuned. If performance tuning is required, perform the following steps to set vm.swappiness.

  1. Clone the existing performance profile.
  2. Add vm.swappiness = 0 to the new profile's tuned.conf file in /usr/lib/tuned/profilename/tuned.conf.
  3. Select the updated profile by running tuned-adm profile customized_profile.