High swap despite plenty of available memory

chrispage1

Member
Sep 1, 2021
89
45
23
32
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!