#RAM utilisation

1 messages · Page 1 of 1 (latest)

remote gale
#

For years I ran Home Assistant on a 4GB Raspberry Pi, and it was always hitting close to max RAM utilisation. About a year ago I switched to a virtual machine on Proxmox, using the HA OS method. I assigned it 8GB and the RAM use was again close to max RAM. Yesterday, I increased it to 16GB to see what would happen and it seems it was again getting close to max RAM utilisation although it then backed off a little bit. I don't have a big install by any stretch. I don't really notice any significant delays in performance now, nor did I when it ran on 4GB.

I am wondering why so much RAM is being used. Is it perhaps like Windows, where the OS takes up all the RAM it can get for caching of local files to speed things up? Should I just keep reducing it until I start noticing things slowing down?

I would be very curious to get some pointers on what could be causing all the RAM to be gobbled up!

Thanks in advance for your patience.

red hemlock
#

it's being gobbled up by cache. most modern OSes will cache as much as possible and utilize as much memory as possible. unless you know you are going to be doing memory heavy stuff like running databases alongside HA 4GB memory is probably enough

#

i've got HAOS running in a VM in Proxmox and I've given it 4GB, which it is using most of. looks bad, right?

#

but if I actually look at the Hardware page in HA, it's really only using a little more than a gig and the rest is just cache

full stratus
full stratus
#

Just a matter of perspective.

remote gale
#

This is all very useful information. Thank you guys so much for sharing this information. My HA is reporting 1.4GB in use, while the Proxmox VM says 14 of the allocated 16GB is in use.

<offtopic>The same principle happened with my fileserver vm, for which Proxmox reported almost all of the allocated 16GB was in use as well. After looking, I found that free gives good information and it turns out it was ACTUALLY using less than 1GB!</offtopic>

Long story short ... I upgraded my memory from 16GB to 64GB for no reason, and wasted a bunch of money in doing so.

I'm super annoyed with myself.

#

But super happy with the insights you guys have provided 🙂

smoky anvil
remote gale
#

I never know what to run! Haha

#

hey anybody want to buy 64GB of DDR4 memory? 😉

smoky anvil
#

check out selfhosted reddit and the selfhosted weekly newsletter for inspiration 🙂

remote gale
#

hehe, thanks

smoky anvil
#

i spin up random stuff to experiment all the time. sometimes i continue with it and sometimes i dont

remote gale
#

i love my little dinky homelab .... but i will admit to feeling like a total n00b for having bought all this RAM when the 16GB I had was more than double what i needed already

smoky anvil
#

lets be real, it wont be the last mistake you make. treat it as a learning experience

remote gale
#

true 🙂

smoky anvil
#

there are plenty of things i have done and bought that i wouldn't recommend to people after doing them

remote gale
#

part of the fun, as you said