Memory Usage Mismatch After swapoff in Proxmox

tyuhbh0

New Member
Nov 16, 2023
5
0
1
I’m noticing that the memory usage shown in htop, top, and Proxmox Web UI seems incorrect or inconsistent, especially for free memory — it's much lower than expected even when VMs aren’t using much.

My PVE Version 8.4.1.

whenever i am rebooting then show fine but after an hours again Memory usage increased drastically.

root@TAK-1:~# free
total used free shared buff/cache available
Mem: 197762588 126903776 3412988 84648 70702216 70858812
Swap: 8388604 524 8388080


Please help!
 

Attachments

  • Screenshot 2025-05-09 at 6.21.59 AM.png
    Screenshot 2025-05-09 at 6.21.59 AM.png
    42.1 KB · Views: 9
Last edited:
Hi,

Well, without sharing your exact setup, it's impossible to help you other than general FAQ.

Best regards,
 
Hi,

Well, without sharing your exact setup, it's impossible to help you other than general FAQ.

Best regards,
exact setup i didn't get you. 3 nodes clusters PVE.


8 Vms and 8 LXc containers . Thats'a it.
 
Last edited:
You can use tools like free and ps/top to see what is consuming your memory. But there are many variables, are you using balloon memory, are you using PCIe passthrough, what CPU/memory/BIOS settings. Are you actually running out of memory, or are you just complaining about cache.
 
You can use tools like free and ps/top to see what is consuming your memory. But there are many variables, are you using balloon memory, are you using PCIe passthrough, what CPU/memory/BIOS settings. Are you actually running out of memory, or are you just complaining about cache.

It was running well until run command "swapoff -a". i have total 16 VMs (including containers) total memory of all VMs is around 68GB. but when i see Summary of PVE i can see i can 128Gb or 121gb Ram using.

i don't understand what happened, sometimes "actually running out of memory" without changes anything.

i am not using PCi passthrough. i don't know what is happening.
 
Last edited:
Please stop full quoting and perhaps delete the existing ones. It's just noise and redundant. What does this look like?
Bash:
top -co %MEM -bn1 -w260 | head -n60
arc_summary -s arc | grep -A3 "ARC size"
 
Last edited:
Thank you. After limit of ZFS' ARC to 1Gb. it works fine.

I doubt this. The ARC cache exists for a reason to speed up file operations. With over 100 GB RAM you can ( and should ) use this, non-used RAM is wasted. 16 GB ( the default on newer PVE Installations ) for the ARC cache should serve you well.
Btw: The reference to the doc on how to limit the ARC cache was already in the "not helpful" first link together with an explaination why this is actually a good thing.
 
  • Like
Reactions: UdoB