HandyHost icon indicating copy to clipboard operation
HandyHost copied to clipboard

Beware Raspi users about Sia Registry size

Open esaumell opened this issue 3 years ago • 1 comments

From HandyTalk Telegram:

Edgar, [2/6/22 8:55 PM] [In reply to Alex Smith] Hey Alex, Today I found my services down.

dmesg log: [1208124.110345] Out of memory: Killed process 42563 (siad) total-vm:45835076kB, anon-rss:6806972kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:82748kB oom_score_adj:0

Someone answered on Discord https://discord.com/channels/809849352516141067/827641929008152635/939039591976030239 and pointed me to https://github.com/SiaFoundation/siad/blob/master/modules/host/registry/persist.go#L142 just to confirm that Sia does put the registry on RAM while running. I'm not an expert coder, so I give it to you to interpret that. If that's correct, it would be nice to put some warning for Raspi users on to the question mark text hover on the Registry Size (GB) field at Host settings page.

For now I set up the registry to 5GB. Sentinel is also running on that Pi and these past days I saw it swapping. Let's see how it performs now.

Thanks

Steven McKie, [2/6/22 9:41 PM] great feedback. Thanks dude. If you can post this as a GitHub issue it’ll be a lot more useful to other dev types who use HandyHost

Steven McKie, [2/6/22 9:41 PM] and scales open source support

Edit: This happen with a Raspberry Pi 4 8GB

esaumell avatar Feb 06 '22 22:02 esaumell

As suggested on Discord, I set the registry to 1GB and configured cron to reboot every day because the raspi kept getting an OOM killer.

esaumell avatar Mar 15 '22 00:03 esaumell