LXC containers on Proxmox 5.3 showing wrong swap value

shinji

Member
Jun 23, 2013
4
0
21
Currently LXC containers inside Proxmox are showing the wrong swapfile size. I only have 1 GB on the host and with that I allocate about 128MB as needed to containers. Is there any fix for this?

As a side note. I run netdata inside the LXC containers currently (as well as the host) and inside the containers it is recording spikes in swap usage where it hits max then drops out again.

EDIT: So I figured out how to increase swap a bit. Since this is OVH it probably setup the partitions non-standard. Where most would probably have just been able to run some lvresize commands to change the size I had to resize down the pve-data lvm then add a new pve-swap to it so that I could have it there. I didn't let the 1GB go to waste though and merged it into the root partition. I gave myself a healthy 32GB swap and hoped I never would need it all.

This is when I realized that LXC is reporting Allocated ram + Allocated swap for the swap size. It was showing 1GB before because it was capping out there and couldn't report more.
 
Last edited:

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!