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.
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: