auto-joe / rPi-xmrig-gcc7.3.0

The fastest miner available for Raspbian.
MIT License
43 stars 12 forks source link

rPi-xmrig-gcc7.3.0

The fastest miner available for Raspbian on Raspberry Pi.

This miner is a compilation of https://github.com/xmrig/xmrig, compiled with gcc/g++ 7.3.0 specifically for Raspbian Stretch on Raspberry Pi3 b (untested on earlier models - but please feel free to try and post your findings). As noted in the Ubuntu build instructions on the official xmrig repo: "Optionally you can use gcc 7 to small performance increase" (https://github.com/xmrig/xmrig/wiki/Ubuntu-Build). Additionally, a recent change might take further advantage of 7.3.0 over 7.1.0, seen discussed here: https://github.com/xmrig/xmrig/pull/385. TL;DR - use this binary for a 15%-20% performance boost on Raspbian.

So what?

The latest version of gcc/g++ available from Raspbian repositories is 6.1.0, and you will be hard-pressed to find a third party binary for 7+ at the moment (this is no longer the case). To solve this, I compiled 7.3.0 from source, directly on one of my rPi3's (long process- saving you time here!). Then, after making a slight tweak to the flags.cmake file from the original xmrig repo, I was able to successfully compile xmrig with gcc-7.3.0:

init gcc-7.3.0

Results

I now see an approximate 20% hashrate increase with my new xmrig binary! I tested the binary on two other rPi3b's I have and saw the same performance boost. My pi's have heatsinks, fans and mild overclocks (cpu_freq=1325, sdram_freq=500). Mining Aeon with the gcc 6.1.0 xmrig binary, I average ~21.8 H/s. With the new 7.3.0 xmrig binary, I'm averaging ~25.1 H/s!

hashrate gcc-7.3.0

Usage

Usage is the same as xmrig: https://github.com/xmrig/xmrig/tree/v2.8.3#usage

Warning

I DO NOT RECOMMEND that anyone ever download binaries/executables from third party sources or unofficial Github repos. You can review my credits section to see my sources, and really just take me at my word from there. Hopefully some brave users will try it out and report back here to vouch for me :)

Donations

I have not altered, or reduced the default xmrig donations in my compilations, as I respect the work that the developers have put in, I'm merely standing (crouching?) on their shoulders. However, if you feel like giving me a small donation for my time spent and sharing this binary and my findings, please feel free to donate to one of my wallets:

Credits

Performance notes/known issues