I have finally bit the bullet and switched to 64bit HAOS on my Rpi4 2GB but the whole system is very unstable.
I don’t remember the original 32bit setup crashing ever, not once in my three years of use, but the 64bit one reboots one or two times every day.
How do I investigate? I don’t see anything in the logs. It usually restarts around 5 AM for some reason. I looked at RAM and CPU loads and Temps but don’t see a significant spike. It’s only a 2GB RAM variant but it usually settles at around 1600 MB (the same config on 32bit took around 1250 MB).
It’s my old config (backup) restored onto a new SD card (SanDisk Extreme). Everything is up-to-date. Any tips? Thanks!
EDIT: looks like a out of memory situation caused by several big add-ons and the fact that 64bit takes around 25% more RAM than 32bit
44159.549050] Out of memory: Killed process 6064 (python3) total—vm:641344kB, anon-rss:470148kB, file-rss:®kB, shmem-rss:@kB, UID:® pgtables:1328kB oom_score_adj:0
(here’s the entire dmesg output, I’m not a coder and can’t properly parse it).
I’ll probably switch back to 32bit, 64bit doesn’t provide any tangible advantage to my use case anyway. Thank you.
Quite a lot to run on a wee pi. Have you considered running sonarr and other services on another computer? I assume if you run sonarr you have another computer where you store all that music?
Sonarr is for downloading TV shows but yes, it downloads them onto a Synology NAS (that’s much more RAM-strapped than the Pi). 2GB was perfectly adequate for all that stuff in 32bit OS, I never had any stability issues (it usually peaked around 1200 MB used even with all this stuff running). I could probably run Sonarr on my other RPi4 that runs Kodi (Kodi has a Sonarr add-on). Good idea, thanks!
What seems weird to me though is that the HAOS kills the very core of it all - Python3 - instead of shutting down an offending add-on (Sonarr survives the restarts). That looks like something to address by the devs. Granted this is an unsupported 3rd-party addon so I don’t blame anyone, but still, there should be some sort of priority mechanism.