-
mechanic41turk[m
-
mechanic41turk[m
I would like to have my raspberry pi 4 (4GB) to host the monero node necessary for the p2pool. And I would like to connect my miner computer (in the same house network) to the monero node in the raspberry pi.
-
mechanic41turk[m
-
mechanic41turk[m
and then, does `p2pool` run on my raspberry pi?
-
mechanic41turk[m
`xmrig` runs on my miner computer, most possibly.
-
pauliouk
it is pushing the Pi quite a bit to get it running, but it will work. It might run a bit slow from time to time, and it will take a long time to sync up to the network
-
pauliouk
you will also need to compile it from source as I do not believe there is a ARM binary yet (correct me if I'm wrong)
-
sech1
yes, use p2pool-v1.1-linux-aarch64.tar.gz
-
sech1
and monerod will most likely crash on RPi because of lack of AES support
-
pauliouk
I should really look at the repo before commenting :P
-
mechanic41turk[m
sech1: So, my plan is basically dead in the water?
-
mechanic41turk[m
the only single board computer I have is raspberry pi 4.
-
sech1
you can try to compile monerod with NO_AES option
-
pauliouk
a backup plan would be to use p2pool on the Pi, and use xmrvsbeast[m]'s remote monerod
-
mechanic41turk[m
compile from the source code in your p2pool repo?
-
sech1
p2pool works on Pi
-
sech1
I tested it on my RPi3
-
sech1
-
sech1
you can use p2pool binary, it works on Pi
-
mechanic41turk[m
sech1: I remember you said that you made a few tweaks and changes to the monerod in order for it to be compatible with p2pool
-
sech1
and it's probably better to use remote monerod
-
mechanic41turk[m
that's why I asked.
-
mechanic41turk[m
sech1: ok.
-
sech1
my changes to monerod were merged, you can use official release branch now
-
mechanic41turk[m
very frustrating that monerod doesn't play nice with the most available single board computers out there (raspberry pi's).
-
mechanic41turk[m
sech1: nice.
-
mechanic41turk[m
mechanic41turk[m: I need to find some obscure ASUS single board computer with RK3399 chip and then try to import that into my country etc. etc.
-
mechanic41turk[m
since rockpropro64's are mainly out of stock and are shipped from USA etc. etc.
-
mechanic41turk[m
very very frustrating.
-
mechanic41turk[m
just wanting to run a local node, requires a somewhat more specialized hardware than it is for bitcoin.
-
pauliouk
p2pool will run ok on a RPi, the Monerod is a lot heavier on resources, so most SBC's won't handle it too smoothly
-
pauliouk
Most of the SBC's with AES I've found only have at best 2GB of memory
-
mechanic41turk[m
pauliouk: yes, that's what I see with one candidate for my shopping, too.
-
mechanic41turk[m
pauliouk: you have an SBC recommendation for running a monero node?
-
sech1
monerod runs surprisingly well on modern phones though. Just use external micro-SD card for blockchain and run pruned node
-
sech1
Android + termux
-
mechanic41turk[m
sech1: That would have never occurred to me.
-
pauliouk
was just about to suggest an android phone
-
mechanic41turk[m
Very interesting.
-
sech1
buy old Android phone with 4 GB RAM and micro-SD slot
-
mechanic41turk[m
I have a pixel3a running grapheneOS.
-
pauliouk
means it's going to be stuck to just wifi, but yeah should do the trick regardless
-
sech1
-
mechanic41turk[m
fascinating, but still a "meh" solution to running a home node.
-
mechanic41turk[m
a small SBC should be more stable, and more accessible via ssh than an android phone.
-
mechanic41turk[m
since android phone runs a modified version of linux, while SBC's mainly run linux itself.
-
mechanic41turk[m
much more accustomed to accessing linux, and doing admin stuff in them, than doing in an android phone.
-
mechanic41turk[m
also, the phone should get really hot during initial sync with the blocks after the randomX fork.
-
pauliouk
-
mechanic41turk[m
my laptop computer always screams like crazy once monerod gets to those blocks syncing.
-
DataHoarder
mechanic41turk[m: TL;DR compile your own binaries for raspi 4
-
pauliouk
a little USB fan will help with things like a RPi or phone :)
-
DataHoarder
should be fine to run a node
-
mechanic41turk[m
sech1: also, monerod already complains about the HDD's for those having slower writing speeds. MicroSD's also have slower read/write speeds. Thus, isn't it also not good to try and run a hacky node on an android with an SDcard?
-
DataHoarder
SD card will probably be the bottleneck there
-
mechanic41turk[m
<sech1> "I tested it on my RPi3" <- were your RPi3 running a 64-bit OS?
-
pauliouk
your easiest option here would be to use a remote monerod
-
pauliouk
heck, you could probably rent a VPS somewhere for 6 months for the same price of importing tech to Turkey
-
mechanic41turk[m
pauliouk: my goal is having the software run in the house.
-
mechanic41turk[m
under my thumb.
-
mechanic41turk[m
thus having the most control over it.
-
mechanic41turk[m
at that point, why not I connect to xmrvsbeast's nde
-
mechanic41turk[m
*node.
-
pauliouk
always the best way, if you have a stable and quick internet connection :)
-
pauliouk
yes the remote node is a quick and very effective solution
-
mechanic41turk[m
pauliouk: not the best, especially the fact that my ISP doesn't give me a dedicated IP, but rather the whole neighborhood shares one.
-
sech1
Yes, I installed 64-bit OS on my Pi
-
mechanic41turk[m
sech1: OK.
-
mechanic41turk[m
So, I would be installing a 64 bit Ubuntu server on my raspberry pi 4. Then I would compile monerod from the source with no AES support. And then I would download your binaries for aarch64 for the p2pool, and run p2pool and monerod on the raspberry pi 4.
-
mechanic41turk[m
then, I would run the xmrig on my miner computer.
-
sech1
you would get a lot of uncle shares in p2pool because of how slow Pi is
-
sech1
it takes 200-300 ms to verify a block
-
mechanic41turk[m
ugh
-
mechanic41turk[m
I don't know what an uncle share is, but I feel like it is another road block to the smooth operation.
-
sech1
you'll get lower rewards if your node is slow
-
mechanic41turk[m
slow in the sense of read/write speeds to the SSD?
-
mechanic41turk[m
I don't understand, the raspberry pi4 has an OK CPU.
-
mechanic41turk[m
it's not like it is outdated or something.
-
DataHoarder
It is slow cause of specific features randomx uses mechanic41turk[m
-
mechanic41turk[m
I mean, that hardware is the latest in the line of raspberry's, and if that can't handle running monerod, how can we expect "third worlders" to run a node?
-
DataHoarder
old vs new does not mean it performs, but specific features
-
mechanic41turk[m
DataHoarder: yeah, that was my suspicion.
-
DataHoarder
it can handle monerod, no one said that
-
DataHoarder
just, slower, more enough to sync
-
DataHoarder
more than*
-
mechanic41turk[m
DataHoarder: but it is slow, doesn't support aes, cannot run 64 bit binaries, will be slow with rewards in p2pool...
-
DataHoarder
see, 100-200ms vs 2m interval
-
DataHoarder
it can run 64bit
-
DataHoarder
who said it cannot?
-
mechanic41turk[m
DataHoarder: a sec
-
mechanic41turk[m
-
DataHoarder
I am running a monerod node on a raspi 4. Slower is not “slow forever”
-
mechanic41turk[m
-
mechanic41turk[m
DataHoarder: is it armv7 one?
-
DataHoarder
They don’t say you cannot run 64-bit builds, but that 32-bit ones use armv7 and that instruction set lacks the AES ops, so it never was a problem
-
DataHoarder
you can make an armv8/aarch64 build for yourself that uses everything but AES hardware acceleration operations, which is what rpi4 lacks
-
mechanic41turk[m
DataHoarder: any guides, reddit threads, etc on how to do that?
-
DataHoarder
You could follow instructions on p2pool readme
-
DataHoarder
Might as well build both from source :)
-
mechanic41turk[m
-
sech1
Slow node means you'll be mining on an old p2pool block for 200-300 longer than needed. Compare it with 10 second block time on p2pool and you'll get 2-3% uncle blocks (each uncle block gives 20% less reward)
-
mechanic41turk[m
I don't see the build command specifying the no-AES operation
-
sech1
*for 200-300 ms longer
-
mechanic41turk[m
sech1: ok. thanks.
-
mechanic41turk[m
<pauliouk> "Most of the SBC's with AES I'..." <- on this, is it recommended to have at least 4 GB RAM on an SBC, in order to run monerod?
-
DataHoarder
you can run with less, with light-mode
-
DataHoarder
also for p2pool
-
DataHoarder
again, slower checking on RandomX, uses 256 MB instead of, what is it, 2 GiB?
-
sech1
monerod always runs in light-mode when you're not mining on it
-
sech1
it allocates 2 RandomX caches (2x256 MB = 512 MB)
-
DataHoarder
aha
-
sech1
p2pool does the same in light mode, so they'll take 1 GB combined
-
sech1
So 2 GB is bare minimum to run monerod + p2pool and it will be very tight
-
sech1
4 GB is better
-
mechanic41turk[m
sech1: that's good to know
-
DataHoarder
I wonder, can I make monerod run in non-light mode, to reduce PoW check times? :>
-
DataHoarder
probably it's just ms on this system anyhow
-
sech1
you can start mining with 1 thread there and it'll switch to RandomX dataset mode
-
sech1
you'll save up to 10 ms on block verification if you have 1 spare CPU core
-
sech1
but it only works when you're mining solo in monerod
-
DataHoarder
maybe I'll add a custom parameter
-
pauliouk
and remember, if you luckily mine a block solo, you have to share it with us :D
-
DataHoarder
already shared two blocks :)
-
sethsimmons
35kh of p2pool hashrate is en route to me, time to step up my game and mine some Monero while providing under-floor heating to my house 😅
-
crypto_grampy[m]
<sethsimmons> "35kh of p2pool hashrate is en..." <- Ooooo
-
crypto_grampy[m]
Any links to a build guide?
-
sethsimmons
-
sethsimmons
Should be 6-7kh per, and I have cheap power and a great location, and obv don't need HDDs for just running Linux + XMRig.
-
sethsimmons
Ryzen costs are so damn high right now I just went with old servers to cut CAPEX. Power usage will be much higher, of course, but if I want to stop mining for whatever reason these will make great home servers with some 2.5" SSDs.
-
jaska087
sethsimmons: You'll probably annoy the hell out of people if you get stack of those and run them near a house :D
-
sethsimmons
Under a house, but if the wife isn't a fan they'll get moved to the detached garage where no one will care 😀
-
sethsimmons
I've spent many hours in datacenters so I'm well aware of sound levels to be expected with tiny 40mm fans, but I'm also going to explore building an enclosure for them all with large intake/exhaust fans and filters.
-
jaska087
Where I currently live the heating is done with electrity only and in winter it's usually around -20 to -25C
-
jaska087
those would be excellent heating units
-
jaska087
though the sound would kill me
-
DataHoarder
min I go for nowadays is 2U sethsimmons
-
DataHoarder
some with horizontal pcie slots for throwing in a few 100G cards or GPUs
-
DataHoarder
2U, for good front 3.5" density, and large enough fans to not be 17k RPM ones
-
jaska087
Tower/3U for me
-
DataHoarder
yeah, it's all racked here
-
DataHoarder
I had a 3U, replaced it, front 3.5" slot density
-
DataHoarder
not going for toploaders either, just good density for a hyperconverged cluster setup
-
jaska087
Had a 3U with 12bay 3'5 it was not hotswap and the cable managing, hdd replacing was a nightmare..
-
jaska087
though it was dirt cheap
-
sethsimmons
Understandable, main thing for me here was cost and CPUs/RAM included and fairly modern, would be easy to build a unique enclosure or use a weed growing tent (don't know the formal name lol) with forced intake/exhaust via large fans
-
sethsimmons
I don't need the 1U FF, so can tear them down to mobo + PSU
-
DataHoarder
yeah, here I find scrap supermicro chassi with DDR2 or DDR3 era stuff inside
-
DataHoarder
scrap that, keep chassi for VERY cheap
-
DataHoarder
then fill with modern things, as it's all compatible with supermicro across generations
-
sethsimmons
Nice 😀
-
hyc
rockpro64s are shipped from China, just like raspi
-
hyc
at this point a phone with at least 4GB RAM is pretty ideal. has it's own built in battery backup, so it will keep working thru power outages
-
hyc
(had one last night that knocked out my rockpro64.)
-
hyc
I'm thinking of patching together a monerod + p2pool that outsources all randomx hashing to a 3rd process. that way only have to pay for memory once.
-
hyc
basically using something like this
github.com/tevador/randomx-service
-
hyc
but with a binary protocol instead, perhaps thru a shared memory region
-
pauliouk
hmm, about £60gbp for a 4gb unknown brand android, so like $80?
-
hyc
sounds about right
-
hyc
for the record, raspi 1 and 2 were 32bit only. raspi 3 had 64bit CPU but shipped with the same 32bit OS as pi 1 and 2.
-
hyc
raspi 4 has 64bit CPU and 64bit OS
-
hyc
you could of course get a 3rd party 64bit distro to install on your raspi 3 but raspberry didn't officially support that themselves
-
DataHoarder
I believe modern debian works with mainline kernel
-
pauliouk
you can also get the 64bit mod for the 32bit OS, provides 64bit support
-
hyc
yeah, mainline kernel support is nice to see
-
hyc
I'd also consider building a custom OS image for an old phone, that only keeps the basic linux functionality, omit the entire android runtime.
-
hyc
would save a lot of memory
-
pauliouk
hmm, if you can get a phone to mine XMR 2x as fast as a Pi (~200H/s) for twice the price of a pi... might be worth it to cut down on the cabling :)
-
sech1
my 5 year old phone mines at 240 h/s. Just buy used phones
-
pauliouk
strip the phone down, get it in a case with some airflow, granting mining on wifi isn't the best, but heck, if you can build a 1MH/s rig into a PC case cheaply, then heck time to start hammering ebay for used mobiles
-
pauliouk
I've got an old samsung S6 with a battery thats about to go thermonuclear I could happily mess with
-
Inge
.c 1000000/240
-
Inge
so just over 4000 phones
-
Inge
ezpz
-
pauliouk
total :) why make one, when you can make 2 at twice the price? :D
-
pauliouk
mining is only ever going to be profitable if you already have the hardware
-
pauliouk
or if you have a collection of zero-days
-
pauliouk
Hmm, facebook, Instagram and Whatsapp are all down... quick lets promote vaccinations, democracy and Crypto while there's no idiots around to fud it.
-
crypto_grampy[m]
<hyc> "I'd also consider building a..." <- My body is ready