this post was submitted on 18 Nov 2023
8 points (100.0% liked)
Proxmox
1063 readers
5 users here now
Proxmox VE is a complete, open-source server management platform for enterprise virtualization. It tightly integrates the KVM hypervisor and Linux Containers (LXC), software-defined storage and networking functionality, on a single platform. With the integrated web-based user interface you can manage VMs and containers, high availability for clusters, or the integrated disaster recovery tools with ease.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's because your swap is set too small. It's actually using more RAM than swap, but because swap is 1/8th the size it's already full. Normally swap size is equal to ram. If you don't like the behavior of using swap with low ram usage check out swapinness.
I figured swap would only be used if I ran out of available memory. I'm not an expert at all, so I could be totally wrong about that.
Is it possible that the container is allocating the space preemptively but not actively using it? So proxmox would see it as being used, but plex is simply reserving it. I think I've seen that occur on other containers like home assistant (but this is a VM not LXC). Proxmox says it's using almost all the memory available to it, but going into home assistant itself says it's only using a fraction of that amount.
Yeah this is a fundamental misunderstanding of how swap works on modern systems. Unfortunately a common one as well. Lots of people think using swap is bad and that they should eliminate it or that they need more RAM when they really don't.
Just as likely to be disk caching. Sometimes it's counted as using memory and sometimes not.