downloading bitcoin core blockchain is super slow

19 replies 392 views
cybergasFull Member
Posts: 93 · Reputation: 505
#1Oct 4, 2018, 08:16 AM
I've got a dedicated PC with Ubuntu that's pretty decent: Intel Core i5 processor 8GB of RAM 500GB SSD The download started off strong, hitting about 70% in just a couple of days. But recently, it's crawled to a halt. For instance, today it barely made it past 1% in the last 12 hours, and at this rate, I'm lucky to see 2% a day. I've checked the debug.log and there are no errors. It’s been running non-stop, and the percentage is going up, just really, really slowly. Here's my config: prune=3000 dbcache=16384 I'm looking for any tips or tricks. At this pace, it feels like it'll take weeks to finish. Is this the norm these days?
4 Reply Quote Share
colddiamondHero Member
Posts: 623 · Reputation: 2467
#2Oct 4, 2018, 11:17 AM
1) I5 is a bit vague. The original Intel Core i5 was released almost 15 years ago. What gen is yours? 2) The 500 GB drive is not large enough you need at least 1 TB now. https://www.blockchain.com/explorer/charts/blocks-size 3) How fast is your connection? Downloading 540GB on a 1M connection is still going to take a while no matter what else you have. -Dave
2 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#3Oct 6, 2018, 05:56 PM
It seems that you set the dbcache more than your current RAM memory size since you have 8GB of memory you shouldn't set it to more than 4096MB. I suggest try to change it to 4096 but before you do that make sure to stop the syncing process first if you are using a GUI just exit the GUI, and it will shut down automatically if not you can use "bitcoin-cli stop" to avoid corruption reboot your PC and rerun everything then monitor it again if the syncing process still slow or not.
4 Reply Quote Share
im_lynxHero Member
Posts: 515 · Reputation: 2161
#4Oct 6, 2018, 11:18 PM
OP has prune=3000 in his bitcoin.conf, limiting his blockchain data to approx. 3GB. The directory of chainstate will still occupy ~12GB. Depending on how full the 500GB drive is with other stuff, it should still suffice. You're correct when you speak of an unpruned, full archival, node which needs 611GB for the blockchain data alone. Here's my current storage usage: As BitMaxz already pointed out, dbcache is way too large for only 8GB RAM. Use approx. half the RAM for dbcache. For an Initial Blockchain Download (IBD) you can also set the option blocksonly=1, so that your node is not bothered with transaction verification and relay and mempool stuff.
2 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#5Oct 7, 2018, 05:34 AM
Intel® Core™ i5-3470T CPU @ 2.90GHz × 4 OK, good info, thanks Just did a test, down = 197.94 Mbps, wired fiber
3 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#6Oct 8, 2018, 02:55 PM
Thanks, great suggestion.  I will do this.  I am running the bitcoind as a systemd service and am able to gracefully shut it down and restart it.
0 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#7Oct 8, 2018, 07:47 PM
OK, thanks, that tracks what I thought.
3 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#8Oct 9, 2018, 01:35 AM
So just as an update, I am running the bitcoind as a systemd job.  I also have a crontab job to track hourly the progress.  The internet speed is at some times better than others.  I get between .03% and .15% per hour of progress. I will update the cache parameter setting and retry.   [I updated dbcache=4096 and will continue to monitor progress hourly, and update here after a while, thanks all, number one priority on my list to get this working:)]
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#9Oct 9, 2018, 09:30 PM
How is your memory load? My guess is you've reached the part where your SSD-speed (both reads and writes) is the limiting factor due to the low RAM. There's a huge difference between SSDs: some have very bad performance when it comes to combined reads and writes. If it's a budget SSD, that may be the cause. On a similar setup, it took me less than 2 days to complete the IBD. See this post on my progress. Considering the low price of RAM, if at all possible, add some That should make things run much smoother.
4 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#10Oct 10, 2018, 02:46 AM
I have not used #free before but the numbers don't seem to look to bad and are similar to your outputs.  Still not explaining my slow times as far as I can tell.  Also after updating the dbcache setting still ridiculously slow like .09% per hour.  Like 10 times too slow.
4 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#11Oct 10, 2018, 06:25 AM
Have a look at hard disk io/load. I forgot what I used exactly, but Google gives many options. Quick (but inconclusive) test: how long does this take?
3 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#12Oct 11, 2018, 06:56 PM
That new setting is fine. Setting the database cache to 16GB while having 8GB of RAM is bad for your SSD since your system will be relying too much on page file. Bitcoin Core use almost all of the allotted dbcache (about 15GB with your previous setting) to save the UTXO set to RAM before writing it on disk. Since more than half is being moved from/to disk as page file, plus the data being dumped to the data directory, your SSD must had been on a lot of strain before that could make IBD slower. (apparent on HDD, not much on SSD, not on separate physical drives for OS and bitcoin datadir) How about your peers? try: bitcoin-cli getpeerinfo Is it populated with nodes with bad connections? Peers keep disconnecting? ('conntime' just recent)
0 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#13Oct 11, 2018, 10:35 PM
shows a blank list.  I see continual but slow progress, does this indicate a problem that the list is blank? not sure what this is showing me. After thinking about it for a while my thinking at this point is I am getting somehow ISP throttled which fits the facts that initially I was seeing fairly normal progress.  It is being done in such a way as to not affect other activities I am doing on a separate computer.
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#14Oct 12, 2018, 04:49 PM
That outputs your list of peers, zero means that you're currently not connected to any Bitcoin node. That must be the issue, low to zero peer means slow IBD since there's few/no node to download the blockchain from. You must check your system for anything that blocks any connection to Bitcoin Core. Start with your firewall.
4 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#15Oct 12, 2018, 06:59 PM
I have a very slow HDD in my system. When doing the above, it can take minutes to sync. It it would be many seconds for your SSD, I would have called it bad. At 0.4s, I can't really tell. For an idle system it's a few ms. That's easy to test: rename your Bitcoin Core directory and restart from scratch. If it's fast again, it's not your ISP.
4 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#16Oct 12, 2018, 10:44 PM
I saved off the blocks, chainstate and debug.log and restarted.  Will know soon, good idea To start with I see a bunch of peers in the getpeerinfo now....
1 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#17Oct 13, 2018, 04:33 AM
I am confused.  So now at the start of running fresh it is quick again. First hour = 4.18% which is good. Not sure what is happening. getpeerinfo still showing several peers. Any clues or hints on why it would run fast at the beginning and then slow down?  I am not using a firewall.
2 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#18Oct 13, 2018, 08:02 AM
Your chainstate directory gets bigger, and eventually doesn't fit your RAM anymore. That large increases the disk reads and writes. But still, about 10 times slower than mine shouldn't happen. What SSD do you have? I started at the same rate:
0 Reply Quote Share
cybergasFull Member
Posts: 93 · Reputation: 505
#19Oct 13, 2018, 01:54 PM
500GB TOSHIBA MQ01ABF0 Interesting about the slow down under normal circumstances, makes sense.  I will see on this go round how progress is in a while.  I might get a 1000 mbps fiber dedicated separate line to troubleshoot further.
4 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#20Oct 14, 2018, 01:22 AM
That's not an SSD, it's a HDD. That explains everything! It needs to write several TB of data, read a lot of data, and have random access all the time. My SSD was already the limiting factor, it makes total sense your HDD is a factor 10 slower. Your internet connection isn't the bottleneck. There are only 2 things that can improve performance: 1. Get a SSD, preferrably a good brand (Samsung Evo for instance), not a budget disk. Check some reviews on Tom's Hardware to make sure you get a good one. But even a budget SSD will be much faster than your current HDD. 2. Add more RAM. If you do both, you're entire computing experience will get much smoother. Without those upgrades, you should probably just use Electrum instead of Bitcoin Core.
1 Reply Quote Share

Related topics