High memory usage

da-alb

Member
Jan 18, 2021
121
3
23
Hi,

I have a host with roughly 90 LXCs and 50 KVMs running. I've calculated the total usage and roughly it's something around 100 GiB, the host has 384 GiB of total ram installed.

I'm having some difficulties on understanding what's happening. After host reboot the total usage seems to be around 100 GiB. I suspect using PBS as a backup method as something to do this issue.

1641229268968.png

Any ideas?

Thanks
 
Only one way to find out:

arc_summary
Thanks for pointing that out. I totaly forgot about it. Arc size (current) is using half of the total ram. I'm going to reconfigure it, I have a very small pool in mirror mode.

Thanks
 
Some of you LX(C) containers use swap instead of RAM, so give them more RAM. Your system is unnecessarily slow because of this. You have ~60 GB free but all swap used? That is a configuration error and has nothing to do with ZFS.
The containers are not swapping, they have more than enough ram, in fact they are only using 400 MBs each and they have 1 or 2 GB each...
 
But your SWAP is at 100% usage (8191 of 8191 MB) so something is swapping while you still got 61GB RAM available.
You could try to lower the swappiness down to 1, so it is really only used to prevent the OOM killer from triggering.
 
Last edited:
But your SWAP is at 100% usage (8191 of 8191 MB) so something is swapping while you still got 61GB RAM available.
You could try to lower the swappiness down to 1, so it is really only used to prevent the OOM killer from triggering.
I'll try
 

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!