arc_summary
to see how much RAM your ARC is using.linuxatemyram.com
And if you are using ZFS its ARC will use up to 50% of your hosts RAM for caching if you don'T manually limit the maximum ARC size. You can runarc_summary
to see how much RAM your ARC is using.
Show us the output of yourThank you so much, I was actually quite worried for a sec. Then it's proxmox using the RAM, and not the VM's? Asking mostly since I'm learning something new here
free -h
and arc_summary
so we can tell if it is caching of your host.just to add to this, on any virtualisation, your guest VM will use the ram allocated due to file caching in ram. Every modern OS caches in ram but when you look at the ram usage say htop on the vm, it will report its active usage but not cached, instead look for the Free ram and it will usually be very low. Even with ballooning ram usage will still be high on the host due to OS caching behaviour, and this is why you cannot oversubscribe ram without running into performance issues.
Caching is fine and useful but you will want to size your ram right to make sure everything its going to actively run has enough ram.
It isn't the ARC. Its just normal linux pagefile caching. ARC wouldn't be counted as cache/buff.Hi, I have been using Proxmox mainly to run Home Assistant as a VM (and a small LXC with very little memory assigned to it).
Lately I have noticed that Home Assistant VM in Proxmox reports the memory use of almost 100% (of the 8GB assigned to the VM) within very few hours.
View attachment 32444
If I check the actual memory usage within Home Assistant (guest), it's far from it, showing most of the memory to be available:
View attachment 32443
So it seems, as described in previous replies, that Proxmox is using a lot of memory for caching. I tried arc_summary on the host, but I really don't understand the extremely detailed report it gives, what I should be looking for, or if I should limit it and how.
I know Home Assistant does not require so much memory, I increased it some time ago when, I guess by misreading the memory usage, I thought it was running low.
So, should I try to limit the memory arc allocates for cache? decrease the VM's RAM to only the required 4GB?
Thanks for your reply! I see, really didn't paid much attention to buff/cache on the guest, and was focused on the graph displayed in Proxmox, which gets red and we all know red is badIt isn't the ARC. Its just normal linux pagefile caching. ARC wouldn't be counted as cache/buff.
And the PVE graph is correct. 99% of your physical RAM is used with just 81MB free. But thats no problem because PVE can free up 6.7GB of its used RAM (thats what "available" means) if needed by processes or guests.
free -h
Both Proxmox andHi guys,
I noticed same problem for me, I have proxmox with just a VM with Home Assistant inside. I have same ram usage but no ram available if i make theIs it normal? I don't think so at all.Code:free -h
Pics in attachment,
thanks
free
agree: 7.2GiB memory used and 2.5GiB swap used. What's the problem? If you only have 8GiB RAM and 7.2GiB is used, you have very little RAM available.Every operating system assumes that unused memory is wasted and will fill it with filesystem cache: see Linux ate my RAM which was already suggested by the first reply to your question.. You assigned 7.8GiB of memory to the VM and it uses 1GiB for programs and 6.6GiB for filesystem cache, That's 7.6GiB of memory used according to Proxmox, which does not know that most of it can be reused by the VM (and it is correct because Proxmox cannot reused that memory).Yes they both agree but I'm asking if it's a normal behaviour or not.
Is it normal to use 95% of the ram while I just run a vm with Home Assistant on it? When I had rpi with 8 gb of ram Home Assistant didn't use neither 2 Gb of Ram.
Yes they both agree but I'm asking if it's a normal behaviour or not.
Is it normal to use 95% of the ram while I just run a vm with Home Assistant on it? When I had rpi with 8 gb of ram Home Assistant didn't use neither 2 Gb of Ram.
qm config YourVMID
) look like?free -h
inside the VM, if it is linux?You didn't showed us how much RAM you gave that Homeassistant VM/LXC.
I do believe that the answers to those questions can be deduces from post #7: 7.8GiB of memory for the VM and 1.0GiB used and 6.6GiB cache. Which makes me think this.
- How much memory did you gave that VM?
- Output of:
free -h
inside the VM, if it is linux?