If you're using the all new Owl AutoMySQL module, We highly recommend disabling SWAP for better performance. Below is a detailed guide to help you disable SWAP on your server.
Why Disable SWAP?
- Owl AutoMySQL utilizes resource management techniques similar to Cloudlinux MySQL Governor, which perform better when SWAP is disabled.
- Disabling SWAP helps prevent performance bottlenecks caused by excessive disk usage during high MySQL activity.
Steps to Disable SWAP
1- Disable SWAP :
Run the following command to disable SWAP immediately:
sudo swapoff -a
2- Prevent SWAP from Enabling on Reboot:
Edit the fstab
file:
sudo nano /etc/fstab
Comment out the SWAP line by adding #
at the beginning. For example:
# /swapfile swap swap defaults 0 0
3- Remove the SWAP File (if applicable):
Run the following command to delete the SWAP file:
sudo rm /swapfile
Replace /swapfile
with the correct SWAP file name based on your fstab
file settings.
Additional Resources
For more insights into SWAP management and its impact on MySQL performance, refer to this helpful blog:
CloudLinux: How Big Should Your SWAP Partition Be?
Need Assistance?
If you have any questions or need help with SWAP configuration or Owl AutoMySQL, feel free to contact our support team.