Bitcoin Forum
May 11, 2024, 06:25:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Cheap Node Self Hosting: Just because you CAN does not mean you SHOULD  (Read 752 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
July 14, 2022, 12:06:59 AM
Last edit: July 14, 2022, 12:30:16 AM by n0nce
 #41

1) Yes you can force a RPi2 or 3 to run a node but it is going to be a slow miserable time and you will have lots of issues.

Since I am not good in hardware stuff and since I somewhat eyeing a configuration to move my bitcoin node away from my main computer... how bad is this CPU: Intel Pentium G4400T 2.90GHz?
Would I hate myself if I start using a mini PC with that CPU and 4GB RAM?
I wrote a bit about this subject in here and here as well.

The hardware is quite low-end stuff, which goes to show that even a cheap node can run the 'full stack' Smiley
  • Intel® Core™ i3-2328M -- 2 cores, 4 threads, 2.2GHz
  • 8GB RAMI started with 4GB, the additional 4 sped up the IBD a ton
  • 2x 500GB HDDsNow 1TB SSD with OS and software & blockchain still on 500GB HDD
  • Regular broadband internet connection & LAN, nothing fancy

The CPU in my opinion will be easily powerful enough. Bottleneck are definitely RAM and SSD. You can get away with HDD if you upgrade the RAM to 8GB (perfect amount for a Bitcoin node in my opinion), however old HDDs tend to die fairly soon. Sadly, an SSD upgrade isn't too cheap even with current bargain prices. You'll be looking at roughly $100 for a 1TB SSD.

IBD was going for around a week and still under 50%. Then I bought a second stick of 4GB RAM, look what happened.
For now, I would like to share my experience with a node that I've setup a few days ago. It is one of my nodes that needed a bit of maintenance; it was quite cluttered and had outdated software so I rebuilt it from scratch. I will also post a guide about it soon (OpenSUSE node walkthrough).
The hardware is a laptop motherboard with 4GB RAM and 2 500GB HDDs.
After it had taken almost a week to achieve ~40% sync, it was going super slow; around 1-2% a day, so I thought it may be a good idea to just plop in a second stick of RAM and see if it does anything. I kind of expected something to happen, but I was astonished at the speed it was going at afterwards! The HDD arm was moving much less now (audible difference); I suspect it was swapping a ton before, and the log was literally flying.

Here's a graph of some measurements I took; I let you guys guess at which point in time I upgraded the node from 4GB to 8GB Cheesy



Thank you both for the input. My conclusion is that since there's no IBD to take care of, the setup is not that bad, although it could use some more RAM.
The only really worrying part may the consumption.
That's correct!

Don't worry about power; my chip has 35W TDP as well, but it never pulls that much.
Right now, with Bitcoin Core, Core Lightning, Electrs and Ride The Lightning running, it pulls between 3 and 10-11 Watts peak. If we calculate an average of 5W, that's 44kWh a year, 10€ in expensive European (25ct/kWh) countries. Under 1€ a month. If you have cheap American (or other) electricity, it will be much lower.

Code:
sudo powerstat -R -c -z
[...]
Summary:
CPU:   4.62 Watts on average with standard deviation 2.62
[...]

The only really worrying part may the consumption.
Measure it Cheesy
Here, prices easily go up to 50 cent (euro/dollar, it's the same nowadays) per kWh. That means 30W costs 11 euro/dollar per month. If not for the disk space requirements, a VPS could be cheaper (but also more risky for running a node).
Back to the 11 dollar per month: that's 400 dollar in 3 years, and could very well justify buying a much more energy efficient second hand laptop to use as a node.
[...]
I'm not sure that newer laptops really pull less power. For one, it's hard to get below 5W average package power, and of course in the last few years specifically, computer performance was generally increased by basically increasing power targets. If lowest possible power draw is such a requirement, ARM is the way to go. But ARM SBCs just have so little power. Keep in mind a Pi 4B draws 5-15W as well.

[Also, fyi: that SH system I consider buying, with that Intel G proc, 4GB RAM and 1TB HDD is just a tad over 100 EUR].
You can get a damaged laptop for $50 with maybe slower CPU and no drive. Then get a 4GB stick of RAM and an SSD and you'll have a great node in my opinion. Bonus if it has a (at least semi-)working battery: built-in UPS!

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
1715451908
Hero Member
*
Offline Offline

Posts: 1715451908

View Profile Personal Message (Offline)

Ignore
1715451908
Reply with quote  #2

1715451908
Report to moderator
1715451908
Hero Member
*
Offline Offline

Posts: 1715451908

View Profile Personal Message (Offline)

Ignore
1715451908
Reply with quote  #2

1715451908
Report to moderator
1715451908
Hero Member
*
Offline Offline

Posts: 1715451908

View Profile Personal Message (Offline)

Ignore
1715451908
Reply with quote  #2

1715451908
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715451908
Hero Member
*
Offline Offline

Posts: 1715451908

View Profile Personal Message (Offline)

Ignore
1715451908
Reply with quote  #2

1715451908
Report to moderator
1715451908
Hero Member
*
Offline Offline

Posts: 1715451908

View Profile Personal Message (Offline)

Ignore
1715451908
Reply with quote  #2

1715451908
Report to moderator
PrivatePerson
Member
**
Offline Offline

Activity: 173
Merit: 12


View Profile
July 29, 2022, 11:25:43 AM
 #42

I would take a closer look at the intel n5105 (10 W), n6005 (10 W), n5100 (6 W), n6000 (6 W) processors.
DaveF (OP)
Legendary
*
Offline Offline

Activity: 3472
Merit: 6270


Crypto Swap Exchange


View Profile WWW
September 11, 2022, 12:23:29 PM
Merited by vapourminer (2), NeuroticFish (2), LoyceV (2), DdmrDdmr (1), dkbit98 (1), n0nce (1)
 #43

Since another thread: https://bitcointalk.org/index.php?topic=5413066 just popped up with someone having issues trying to get core synced on a RPi3 with a slower spinning drive I figured that this thread was worth a bump with a few more comments.

1) If you are running on older HW you may get errors that are not really useful and although caused by the old HW do not directly point to it. In the post that I just referenced above the person was getting peers.dat errors. Could be unrelated could be due to the old hardware just not keeping up or having other issues.

2) The IBD is CPU  / disk / RAM / hardware in general intensive. Some older hardware that works find surfing the web, watching videos, doing your taxes on, whatever. May show errors when running core. But, since everything else is fine you try to trace down what is causing the problem with the software when it really was just HW that could not keep up.

3) POWER. On SBC like the RPi or RockPi or any of the similar ones. I know its been discussed but you are powering the board and more then likely the drive too. You can't always get away with the cheapest wall adapter you can find.

Sure there are more but just wanted to update here a bit and keep this thread alive.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: « 1 2 [3]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!