[Ethereum] geth fast sync is not really fast on Mac

fast-syncgo-ethereum

I'm on MacOS Seirra with Geth 1.6.0-stable. Last few days, tried doing fast sync using the following command.

$geth –syncmode fast –cache 4096

Every time, the sync process hangs with no active peers or ran for almost over night to find less than 10% of the blocks synced. BTW, I ran "syncmode fast" from scratch by clearing chaincode folder everytime.

I'm not on a lightning speed broadband line. even guess 14mbps should be better. My mac also can take more hammering with these specs. 2.93GHz i7 / 16GB RAM / 7500rpm

TIA

Best Answer

If your Mac has a regular hard drive (as opposed to SSD), it will definitely take a very long time. If you can't get a computer with an SSD, one thing I found that helped was this:

When you start geth use the --verbosity flag with a value of 5. This will spit out tons of text. It won't speed up your sync, but it will help you to understand that the node is not hung (because the text will continue to scroll by).

What happened to me is that I was repeatedly starting and stopping geth because it looked like it was hung, but every time I killed it, it would have to start over on the same block that was taking so long. And, even if it got past that one block, the next block would make it look like it was hung.

With the verbosity flag on, you will see that geth is not hung, so it's easier to allow it to continue operating until it finishes.

I know this seems like an odd suggestion, but it worked for me, and eventually I did get it to sync on a non-SSD computer. It took a very long time.

But I would strongly recommend getting a computer with an SSD.

Related Topic