Visit Azul.com Support

vm.zone_reclaim_mode Settings

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us
Looking for Zing?
The Azul Zing Virtual Machine is now Azul Zulu Prime Builds of OpenJDK and part of Azul Platform Prime.
Learn more

Set your 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.

Persistent change:

This is the recommended method for changing your vm.zone_reclaim_mode settings. It takes effect immediately and is persistent across reboots.

  1. Verify the limit of the vm.zone_reclaim_mode parameter and the effects of changing it on your system. Edit the /etc/sysctl.conf file. Add the following entry:

     
    vm.zone_reclaim_mode=0
  2. Ensure that you do not have duplicate entries for vm.zone_reclaim_mode in the file.

  3. Load the sysctl setting from the default file /etc/sysctl.conf. Run sysctl as follows:

     
    # sysctl -p

Non-persistent change:

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.

Run the sysctl command with the -w option from the command line:

 
# sysctl -w vm.zone_reclaim_mode=0