vm.zone_reclaim_mode memory value to 0.
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
vm.zone_reclaim_mode settings. It takes effect immediately and is persistent across reboots.
Verify the limit of the vm.zone_reclaim_mode parameter and the effects of changing it on your system. Edit the
/etc/sysctl.conffile. Add the following entry:vm.zone_reclaim_mode=0
Ensure that you do not have duplicate entries for
vm.zone_reclaim_modein the file.
Load the sysctl setting from the default file
/etc/sysctl.conf. Run sysctl as follows:# sysctl -p
This method changes your
vm.zone_reclaim_mode settings temporarily. It is not persistent across reboots.
Verify the limit of the
vm.zone_reclaim_mode parameter and the effects of changing it on your system.
sysctl command with the
-w option from the command line:
# sysctl -w vm.zone_reclaim_mode=0