bitcoind sync time incredibly slow

1

I am currently running bitcoind v0.16.0.0 on my macbook (osx 10.12.6) and the initial sync time is really slow. I'm syncing at roughly 88 blocks per hour which would mean it would take another 2 months to sync up.. In the activity monitor it looks like bitcoind is using only 3% of the CPU time. Could this be the issue? Is there any way to speed it up?

user95737

Posted 2018-06-05T14:40:42.220

Reputation: 11

Answers

1

Yes there is. The bottleneck is I/O speed and normal HD drives are really slow. You can move the chainstate directory (around 3GB) to an SSD. If your laptop doesn't have an SSD you can use an SSD thumb drive.

There are instruction how to do that in the wiki. I did that using an usb stick SSD and the whole chain synced in a liitle less than 12 hours.

Mike D

Posted 2018-06-05T14:40:42.220

Reputation: 1 571

I moved the entire data directory to an SSD, resulting in a minor improvement at best. Interested in knowing what others have found.Rich Apodaca 2018-06-06T20:09:45.643

@RichApodaca the data directory doesn't matter much. Did you move the chainstate dir?Mike D 2018-06-06T23:33:15.950

I believe chainstate is a subdirectory of the data dir. I moved the entire data directory, so therefore the chainstate directory. No?Rich Apodaca 2018-06-07T05:03:33.617

1

The single most important change you can make is increasing the database cache. If you have enough memory, setting it to a few gigabytes can speed things up by a large factor.

Pieter Wuille

Posted 2018-06-05T14:40:42.220

Reputation: 54 032

-1

So I changed the location of the directory to my own HD instead of my external HD and increased the database cache. Now it runs like a charm. Thanks guys

user95737

Posted 2018-06-05T14:40:42.220

Reputation: 11

Thanks, I think you can update your question with this informationFreewind 2018-12-31T11:02:38.340