SWAP Settings
|
Important
|
Azul Zing System Tools (ZST) is deprecated, and support is scheduled to end on September 1, 2027. After this date, Azul will no longer provide updates or support for ZST. Please contact Azul Support if you have questions about migrating. |
Ensure your SWAP is either turned off or set to 0. Add the required parameter to the sysctl.conf file.
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.
Persistent Change
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.
-
Edit the
/etc/sysctl.conffile. Add the following entry:vm.swappiness=0Ensure that you do not have duplicate entries for vm.swappiness in the file.
-
Load the
sysctlsetting from the default file/etc/sysctl.conf. Runsysctlas follows:
# sysctl -p