Disabling filesystem swapping
Disable any performance tuning services, such as tuned
.
Steps
-
As root, change the current value in the operating system.
-
In
/etc/sysctl.conf
, add the linevm.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 addvm.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
.
-