-
Notifications
You must be signed in to change notification settings - Fork 990
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
Autodetect lmdb storage allocation based on the env #1681
Comments
I saw this issue on an odroid c2, another occurence of it can be found in https://www.grin-forum.org/t/problems-building-on-windows-linux/184/13 |
It also causes an issue with |
I tried to compile from source on a raspberry pi 3 (1GB RAM) with 300GB HD and 3GB swap. Line 75 in fcec70d
and I got this error when I try to run grin:
After changing it to 256MB it started running but got a segfault during block download. I am a bit confused, I thought this value is about disk space (it defaults to 500GB) but it complains about memory? |
Both LMDB and our state storage use (mmap)[https://www.hbg.com/en-us/application-center/authentication/], which is a way to map virtual memory space onto disk. It'd be good to further track down the segfault. |
This is the backtrace
|
With Raspberry Pi 3 B+ this is indeed the issue: Compiling grin_store v1.0.0 (/home/pi/grin/store) warning: unused import: error: literal out of range for usize error: aborting due to previous error error: Could not compile |
@yeastplume is this issue fixed by #2605? Seems you have removed the static allocation but I cannot run HEAD on my board just yet for reasons. |
The hardcoded allocation in here is causing trouble in low-end devices such as ARM 64bit boards (eg. odroid c2). It should either be autodetected based on the environment where grin runs or at the very least driven by a config option.
The text was updated successfully, but these errors were encountered: