1. Sign on as the root user.
  2. Add the line vm.swappiness = 0 to the file /etc/sysctl.conf.
  3. Restart the system to apply the change.
  4. Optional: If you need to tune performance after disabling file system swapping, do the following:
    1. Clone the existing performance profile.
    2. Run tuned.
    3. Add the line vm.swappiness = 0 to the file /usr/lib/tuned/profile-name/tuned.conf.
    4. To select the updated profile, run tuned-adm profile customized_profile.
    5. Restart the system to apply the changes.