Rpi4: 64bit HAOS crashing, 32bit rock solid

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

Does dmesg report anything?

1 Like

Aha, it really probably is a RAM issue:

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.

I am not an expert in all that dmesg output either, but it is definitely killing processes as a result of running out of RAM.

It’s a bit of a worry that a pi with 2G Ram is running out, then again you have a sh*t ton of addons running by the look of it.

Yes I have (Sonarr is big and takes 12% of RAM - that seems a bit high), and they provide big utility to me.

It’s fine, I’ll just switch back to 32bit. I did know 64bit takes more RAM but I didn’t figure it would be this much (around 30 % more!).

Thanks for your help :slight_smile:

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?

1 Like

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.

1 Like

My mistake. I am familiar with radarr & sickbeard.

Hmm, it just hard crashes every day at 5:00, even with 3rd party addons disabled.

Tried again, 64bit on SSD. Again, less stable overall. Not for me.