Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beware Raspi users about Sia Registry size #59

Open
esaumell opened this issue Feb 6, 2022 · 1 comment
Open

Beware Raspi users about Sia Registry size #59

esaumell opened this issue Feb 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@esaumell
Copy link

esaumell commented Feb 6, 2022

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

@alexsmith540 alexsmith540 added the enhancement New feature or request label Mar 14, 2022
@esaumell
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants