2

I´m updating my ethereum blockchain with geth. But I feel it is going really slowly.

Geth Updating

Each block is done in 1 minute, sometimes 30 seconds, but at this pace I'll never reach the final block, because every 17 seconds there is a new block.

Basically blocks are generating at a higher speed than my geth. I'll never finish. Am I doing something wrong? Or probably is my perception and I'm going fine?

It may be a network problem, a processor problem, any tip would help.

Thanks in advance.

6
  • Have you tried the --syncmode "fast" option for geth? Are you writing to a SSD? Nov 29, 2017 at 21:06
  • When was this screenshot taken? The node looks to be about 2 days behind the newest block, so if you took this picture 2 days ago, you aren't behind, you're just getting new blocks
    – natewelch_
    Nov 29, 2017 at 21:06
  • No, I took that snapshot at the moment I made the question. Nov 29, 2017 at 21:18
  • No, it's a regular HDD. Nov 29, 2017 at 22:25
  • 1
    That might be (part of) the issue. I myself had better luck on a SSD vs HDD. as well as doing a fast/light sync vs a full sync. Nov 29, 2017 at 22:49

1 Answer 1

5

Try increasing the cache of geth using option --cache <cache size in MB>. This is especially important if you are no longer in fast sync mode (and your screen shot shows that you are not). Experience is that you should approximately give 30%-40% of your memory to geth. If you give more, you are likely to run into out of memory issues when you run geth continously.

Also from experience, it is recommendable to give geth a cache of around 8 GB (--cache 8192). This number is increasing as the blockchain inreases.

1
  • Perfect solution, and I used your recommendation of 8GB ( --cache 8192) and it reduced each block time from 1 minute average to 10 seconds average. Nov 30, 2017 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.