Not understanding Proxmox VE Memory Usage

hello,

what is the purpose of Proxmox VE Memory Usage ?

i’m always getting warnings/critical messages for all sorts of VMs and don’t understand the purpose - if i configure a VM with 8GB memory, isn’t it meant to use all of that 8GB of configured memory then ? on linux all of the memory is getting used - for processes, buffers and caches. and for kernel data structures.

so - what is this telling to me and how to adjust properly ?

I consider disabling this service entirely because i’m getting spammed.

regards

On my systems it only shows the real RAM usage.


but why should i get warnings when 1,7 out of 2GB is available in that VM ?

free mem in linux is always being used for buffers/caches, so why warn by default when it’s being used ?

What shows the normal Linux agent memory check on this VM?

here is the stats for another vm

top inside vm :

I’ve been wondering about this as well. It’s useless to me, so I’ve completely disabled that check.

However it’s not the check that is to blame, the PVE web interface shows the same numbers:

My experience is that it’s only a matter of time until any Linux VM has this check go critical due to using as much free RAM as possible for caching, so I consider this check useless at least for Linux VMs. Also see PVE incorrectly displays RAM consumption by Linux virtual machines | Proxmox Support Forum (TLDR: it’s showing what the QEMU guest agent reports).

Keep in mind this is not meant as memory consumption of the VM but memory consumption on the host system of this VM.
I know why it was in my example different - this was not a VM it was an LXC.

i still don’t get the point - why is it a problem and a warning being triggered by default, when a VM is configured to use 2gb of memory when it actually is using that 2gb of memory ?

If it is a problem or not you need to decide. For the memory check it has a default parameter value as many checks have. If this is a good or bad default value needs to be decided. In my case it is easy - if i monitor the VM/LXC with normal agents i will set this value for the “Proxmox VE Memory Usage” to 101% and that’s it.

ok, then we handle it that way

Hello!

If one of the answers helped you solve your question, please mark it as the solution. This way, you thank the person who helped you and also indicate that the question has been resolved. This, in turn, helps others who come across the same question.

Thank you!