HandyOSS / HandyHost

Host DVPN/HNS, Sia and Akash all in one UI.
https://handyhost.computer
GNU Lesser General Public License v2.1
102 stars 16 forks source link

Beware Raspi users about Sia Registry size #59

Open esaumell opened 2 years ago

esaumell commented 2 years ago

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 commented 2 years ago

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.