High swap despite plenty of available memory

chrispage1

Member
Sep 1, 2021
90
49
23
33
Hi,

I'm running a hyperconverged cluster (Proxmox & Ceph) across three nodes. I've noticed the swap usage is creeping up. Each node has 192GB of RAM and 8GB of swap.

Ever since system install I've reduced the swappiness to 10.

1729498353965.png

Looking at what is actually eating the swap, it's a few KVM nodes that we're running. However each of the KVM nodes actually have swap turned off altogether.

Any ideas why this might be?

Thanks!
 
Hello,

You can disable swap in your node, that is was a solution of some users. You can stop/disable the swap using the following:


To disable the Swap, run the following command:
Bash:
swapoff -a
In order to disable it permanently, edit the /etc/fstab file and disable the following line by commenting it out:
Code:
/dev/pve/swap none swap sw 0 0
to
#/dev/pve/swap none swap sw 0 0

You may have to reboot the node afterward.
 
Thanks - and this shouldn't cause any problems? I can't see a need for swap being used really... Not when we've got a spare 100GB of RAM kicking about.

Chris.
 
Yes, should don't cause any problem. Since this was a solution for many users. And yes since you have enough RAM memory your server don't have to use the swap.