I upgraded from Pi 3B to Pi 4B 4GB.
Pi 4 in an all-heatsink fanless enclosure. It now runs like a dream.
But in the upgrade process, I’ve made a few changes, which no doubt helped:
Switched from Raspbian venv install to HassIO generic Linux install, still Raspbian.
Switched to the MariaDB addon (which sped up history and logs considerably)
Using RAMDisk on the 4GB RAM for Addons, Config, tmp folders and /var/log.
In total, 3GB allocated to RAMdisk. Stable at less 1.5GB utilisation at the moment.
As far as I can see, no more small constant writes to the SD card. Ensuring longevity.
Reboot takes a while because it has to write back all changes on RAMdisks (1-2 min), and reload over 1GB of data on boot up (a few minutes). But I don’t reboot the whole system often enough to be bogged down.
HA and addons restart quickly.
This allows me to run custom scripts and other applications in the generic Linux environment. Such as use log2ram program for /var/log, set up RAMdisks for HassIO folders. Latter is based on the same idea as log2ram, using scripts written by myself.
Intel Nuc running proxmox hypervisor so I can run other vm’s at the same time.
I love my pi but this was a good investment for me.
Note after doing this if you still want better performance from logs, change your DB from the default to Maria. Some of the slowness was not the PI at all, but rather the default db. Now it’s fast like it should be.