RAM Usage way to high - LVM

  • Thread starter Thread starter Deleted member 186410
  • Start date Start date
D

Deleted member 186410

Guest
Hey guys, i'm using Proxmox 8.0.4.

My "problem", that is irritating me, that all my VM's added together using like 9,5GB RAM + Hosts System like 1,5GB RAM for Proxmox etc.

They overall usage is 22GB / 96GB. I want the real usage, I think its due to caching you can see under "free -m" at first, but my hosts system has 46,6GB RAM cached, so this isn't included under "htop" etc.

File System is LVM, you guys have any idea?

Thank you.
 
The VM that has been runnning for two weeks uses almost 13GiB of it's 34GiB, which is already more than the 9.5 you seem to expect. What does Proxmox show in the GUI for this VM? What does the operating system in that VM show for memory use and filesystem cache?
EDIT: The used memory appears to actually be much closed to 22GiB than 9.5. It's probably filesystem cache inside the VMs, like most threads about (too) high memory usage.
 
Last edited:
The VM that has been runnning for two weeks uses almost 13GiB of it's 34GiB, which is already more than the 9.5 you seem to expect. What does Proxmox show in the GUI for this VM? What does the operating system in that VM show for memory use and filesystem cache?
EDIT: The used memory appears to actually be much closed to 22GiB than 9.5. It's probably filesystem cache inside the VMs, like most threads about (too) high memory usage.
The actual usage is 7,5GB/31,3GB

Screenshot 2023-09-02 081610.png

Screenshot 2023-09-02 081626.png
 
The 7.44 htop is showing is not the whole used RAM. RAM used for caching is missing in that number (so total - available and not total - free).
Actual usage from the guest level is the 8.5G "free -m" is reporting. And the actual real usage might even be higher because of virtualization overhead and because PVE isn't always giving all RAM back to the host that isn't used by the guestOS anymore.
Best is to look what htop is on the host reporting for the actual kvm processes running those VMs.
This pretty good matches the 22GB PVE is reporting.
 
Last edited:
The 7.44 htop is showing is not the whole used RAM. RAM used for caching is missing in that number (so total - available and not total - free).
Actual usage from the guest level is the 8.5G "free -m" is reporting. And the actual real usage might even be higher because of virtualization overhead and because PVE isn't always giving all RAM back to the host that isn't used by the guestOS anymore.
Best is to look what htop is on the host reporting for the actual kvm processes running those VMs.
This pretty good matches the 22GB PVE is reporting.
Thanks for the reply, thats whats htop shows on the host, with 13GB the most.

Screenshot 2023-09-02 234202.png
 
Then have a look at the "RES" column which ich similar to the RAM the KVM process is using to virtualize your VM. 13.3G + 2181M + 1817M + 1491M. Those 4 VMs alone consume 18.8GB. And while the "Mem" bar only shows 21.4G for processes without caches, the bar shows something like ~75% of those 94G are in use. So probably more like 66G of actual physical RAM in use for processes + caching.
 
Last edited:
Then have a look at the "RES" column which ich similar to the RAM the KVM process is using to virtualize your VM. 13.3G + 2181M + 1817M + 1491M. Those 4 VMs alone consume 18.8GB. And while the "Mem" bar only shows 21.4G for processes without caches, the bar shows something like ~75% of those 94G are in use. So probably more like 66G of actual physical RAM in use for processes + caching.
Thanks for the reply.
Thats weird, cause free-m on the Gameserver shows 8168mb in use and 973mb in cache.
 

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!