Ensure your SWAP is either turned off or set to 0. Add the required parameter to the
A common method used to change the parameter value is to edit
/etc/sysctl.conf then use the
sysctl command to write the changes into the kernel. This ensures the swap setting is persistent across reboots.
The following steps apply to RHEL, SUSE, and Ubuntu systems.
This is the recommended method for changing your SWAP settings. It takes effect immediately and is persistent across reboots.
Verify the limit of the swappiness parameter and the effects of changing it on your system.
/etc/sysctl.conffile. Add the following entry:vm.swappiness=0
Ensure that you do not have duplicate entries for vm.swappiness in the file.
sysctlsetting from the default file
# sysctl -p