PingDirectory

Disabling filesystem swapping

Disable any performance tuning services, such as tuned.

Steps

  1. As root, change the current value in the operating system.

  2. In /etc/sysctl.conf, add the line vm.swappiness = 0.

    This ensures the correct setting is applied when the system restarts.

  3. 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.

    1. To select the updated profile, run the command tuned-adm profile customized_profile.