What is the Recommended SWAP Size with the New Owl AutoMySQL Module?

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.

  • 1 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

How to Enable / Disable cPFence Owl™ ?

cPFence Owl™ is a smart 24/7 monitoring system that provides advanced security features,...

What is cPFence Owl™ / DDos Protection ?

cPFence Owl Monitoring Features cPFence Owl™ offers comprehensive monitoring features to keep...

What Is Owl AutoMySQL® and How Do I Use It?

Managing MySQL resource usage on shared hosting servers can be a daunting task, especially for...

Managing Slow Queries and Scripts Using cPFence Owl™

Note: It is now recommended to use the automatic feature instead of manual blacklisting. To learn...