Safe to turn off Swap space with 256GB of RAM with 50-70GB of RAM used at all times?

Operating System & Version
CentOS v7.9.2009 STANDARD standard
cPanel & WHM Version
110.0.6

Nermin

Active Member
Mar 7, 2017
26
5
53
Tuzla
cPanel Access Level
Root Administrator
Hello,

I am thinking of turning off swap space since my server has 256GB or RAM with 50-70GB of RAM used at all times.
It currently has 4GB of swap space for usage.
Also swap space has 0,8-2GB used space on average.

Anyone has any idea what would be the best option for performance?

Thank you
 

ResellerWiz

Well-Known Member
Mar 24, 2023
151
66
103
USA
cPanel Access Level
Root Administrator
Twitter
Hello,

I am thinking of turning off swap space since my server has 256GB or RAM with 50-70GB of RAM used at all times.
It currently has 4GB of swap space for usage.
Also swap space has 0,8-2GB used space on average.

Anyone has any idea what would be the best option for performance?

Thank you
What type of disks are you using? If using SSD or NVMe disks, turning off swap is suggested depending on how much RAM you are using and from the sounds of it, your memory usage is minimal, so you should be good.
 
  • Like
Reactions: cPRex