Raspbian (Debian with ARM cpu) and SIA
-
Thx @brisk and @Taek for your replies which I didn't notice because for some reason I didn't get any notification via mail.
Because I'm using a Cubietruck (which has 2GB RAM) I would be very curious to run Sia. If compiling is done with "two commands" how did you install Go without compiling it?
-
You are right, getting go 1.8 on arm is not as easy as I made it out to be earlier. I tried it on my rasp pi and it was a complete mess. Anyhow I have put in work to get all the latest sia into debian sid and hereby get usaable armhf binaries, but I am dependent on other people. Sia has complex build dependenyies (like golang-1.8) but very basic runtime dependencies. I keep looking for a solution for this.
-
@saljut7 you need a 64bit system to run Sia, it simply won't work on a 32bit system.
If you have 64bit ARM, we can actually create the binaries for you. We should probably start releasing ARM64 stuff alongside the windows/linux/mac stuff.
-
Tried crosscompile with gocompiler to linux/arm, it starts but breaks within 1 second. with...
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
(6/6) Loading renter...
panic: fastrand: argument to Intn is <= 0The debian version of siad 1.0.4 actually runs on rasp pi armhf (well at least it does not bug out in 1 sec) but fastrand is not part of 1.0.4.
Why can it not run on 32 bits archs?
-
@brisk that panic should have included a stack trace. Can you provide the stack trace? That will help us figure out where it went wrong.
32bit is not supported because our database uses mmap, and it's more than 2^31 bytes in size. You can't mmap that much data. We could bring back 32bit support if we switched to a new database, but that's not going to be happening in the short term. We plan to do it eventually, but not in the short term.
-
Ill provide the stacktrace. Assuming mmap explains siads 12G virt mem usage.
-
@Taek said in Raspbian (Debian with ARM cpu) and SIA:
@saljut7 you need a 64bit system to run Sia, it simply won't work on a 32bit system.
If you have 64bit ARM, we can actually create the binaries for you. We should probably start releasing ARM64 stuff alongside the windows/linux/mac stuff.
Sorry again for my late reply (still no board notification and my mail provider says there is no blocking for sia.tech in their site). Well, thx for clarification on this. Maybe I didn't get the point of SIA: I thought of a decentral cloud storage network supported by thousands of small (and low cost) 24/7 systems (like Raspberry Pis ).
So on long term there is no realistic way to run SIA on low cost ARM boards (even if Raspbian would support 64bit for RPi3 the RPi3 would need much more RAM)?
-
@saljut7 that's not quite what he said. Long term, it will be very feasible to run Sia on low cost / low end hardware.
However given the development status of Sia, the focus must be on adding the missing features over optimizing it for different kinds of systems.
As the famous saying goes: premature optimization is the root of all evil...
-
@maol said in Raspbian (Debian with ARM cpu) and SIA:
@saljut7 that's not quite what he said. Long term, it will be very feasible to run Sia on low cost / low end hardware.
Thx. So I'm looking forward. :)