Why is my Bitcoin node indexing so slow?

13 replies 138 views
BasedLynxNewbie
Posts: 2 · Reputation: 21
#1Feb 4, 2018, 03:30 AM
I’m struggling to get my Bitcoin node up and running. I’m on Bitcoin Core Ver 26.0. It started off indexing pretty quickly, but now it’s crawling. It even shut down twice on its own. Could that mess up the indexing? I restarted it, but it’s still barely moving. Only 361,355 blocks left, but it says it’s gonna take 10 days to finish. Been running for 30 hours.
6 Reply Quote Share
ColdGangMember
Posts: 152 · Reputation: 183
#2Feb 5, 2018, 04:04 AM
What you’re seeing is pretty typical. Just a heads up, you're not downloading a node; your computer is acting as the node. You’re actually pulling in all of Bitcoin’s blockchain data, which is over 500GB. Running a prune node helps if you’re excluding some data from a certain timeframe. Depending on your computer’s power and internet speed, syncing can take a couple of days.
0 Reply Quote Share
BasedLynxNewbie
Posts: 2 · Reputation: 21
#3Feb 5, 2018, 04:33 AM
Thanks for the info! I'm on a PC with 8GB of RAM and an i7 processor, plus a 400 Mbps internet. I'm using a 2TB Samsung T7 external drive for the full node. It just felt like it was going faster before suddenly slowing down. If it’s still downloading, does that mean there’s no corruption in what’s been downloaded so far? And when you say resync, do I need to wipe everything?
4 Reply Quote Share
Posts: 185 · Reputation: 37
#4Feb 7, 2018, 12:57 PM
You might wanna increase the dbcache setting. Make it about half of your RAM in MB, and put that in your bitcoin.conf file. Also, try using blocksonly=1 when you're downloading the blockchain. This way, your node will just deal with block data and ignore unconfirmed transactions during the initial download.
3 Reply Quote Share
nick_hawkMember
Posts: 52 · Reputation: 185
#5Feb 9, 2018, 06:25 PM
Yeah, increasing the database cache could boost your sync speed, especially with that external drive you’re using.
4 Reply Quote Share
Ba5edGuruFull Member
Posts: 92 · Reputation: 349
#6Feb 11, 2018, 09:21 PM
First, check if your hard disk is maxed out at 100%. That’ll definitely slow things. I’ve had issues with my download due to low bandwidth here, but I found a trick: get an external SSD, copy your Bitcoin data there, and rename the old one just in case things go wrong. And remember to save your config file as.conf, not.txt.
1 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#7Feb 13, 2018, 02:13 AM
Two things to consider: get more RAM and ditch the external drive. They can easily get disconnected, which leads to corruption. The chainstate is about 11GB, so that won't fit in your RAM, and you’ll end up writing tons of data to your disk. More RAM will seriously improve your overall experience.
3 Reply Quote Share
Ba5edGuruFull Member
Posts: 92 · Reputation: 349
#8Feb 13, 2018, 05:57 AM
What if I just use a non-SSD drive? I got the SSD because my disk was always at 100% while syncing. Does more RAM help keep disk usage down?
1 Reply Quote Share
Posts: 185 · Reputation: 37
#9Feb 14, 2018, 10:21 AM
A "non-SSD drive"? You mean a traditional HDD? What’s the interface of your external drive? Most probably USB3 or something. If you’re not using UASP, it can really slow down the SSD. Internal drives are preferred for SSDs. More RAM means you can keep more data readily available, which is way faster than accessing data from disk.
4 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#10Feb 16, 2018, 09:14 PM
If you don’t have enough RAM, it’s gonna be rough. If that 11GB from chainstate can’t fit in your cache, you’re gonna be grinding on that HDD. Just curious, if you're still on an old HDD, why not switch to an internal SSD? I did that long ago and it was a big deal! Just make sure you get a good one for sustained writes.
0 Reply Quote Share
Ba5edGuruFull Member
Posts: 92 · Reputation: 349
#11Feb 17, 2018, 02:03 AM
That explains why my OS crashed without warning. Almost lost important files. Does Windows just suck? lol
0 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#12Feb 17, 2018, 05:50 AM
Not really, the OS should terminate the app when it runs out of memory instead of crashing.
5 Reply Quote Share
Ba5edGuruFull Member
Posts: 92 · Reputation: 349
#13Feb 17, 2018, 06:56 AM
I had a crash too, but I managed to recover some files using cmd prompt. It was my first experience with that while running Bitcoin Core. What could’ve caused it?
4 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#14Feb 17, 2018, 10:49 AM
That’s super slow! Last time I did a reindex, it took me about 1-2 days on HDD. If you’re not using your PC for other things, close other apps so Bitcoin Core can use more RAM. You might want to start a new thread about your issue instead of continuing here.
1 Reply Quote Share

Related topics