I have HA for 3+ years. I use an external SSD driver instead of SD-CARD. I replaced my RPi4-2GB because it was overheating and rebooting. I replaced it with an RPi4-8GB. Working perfectly and a lot cooler… however, I have noticed that HA never exceeds 2 GB… as it gets close to 2GB RAM usage, the CPU utilisation shoots up to 100%. What is going on? Swapping? How can I determine why this is happening. The HA image (from Pi Imager) is recent, from this March 2024, 64bit, Bookworm.
I notice this high utilisation especially during ESPHome firmware updates (I have 34 devices).
I looking at this and seeing absolutely zero problems except you have more ram than necessary at the moment. The cpu pegged and memory spiked about 33% utilized when you ran the compiles but other than that. Nothing to see here. You have some room to run a few addons.
The machine is going to use the ram it needs - if it doesn’t need more it won’t take it. HA with no addons I would expect that profile.
Also a ram or CPU profile mostly used is not a problem either. It just means you’re getting utility out of your money.