Skip to content

Why is the initial sync so painfully slow? Have I misconfigured something? #294

@General-McSnuffles

Description

@General-McSnuffles

Bitcoin Core took about twenty-four hours to fully sync.

I figured Fulcrum would sync in maybe half that time, since it's just indexing off of a local connection, but man, it's on the day three, and still at 98%, with processing slowed down to only 53 blocks/minute. I'm wondering what's causing the slowdown.

  • It's not a network problem. Fulcrum and Bitcoin Core communicate via localhost.
  • It's not a CPU problem. top shows that the Fulcrum process rarely gets over 15%.
  • It's not an IO bottleneck. Everything is being written to an external USB SSD. Max write speed of the drive is 250 MB/s, but Fulcrum only rarely exceeds 4 MB/sec. Typically it's at around 1 MB/sec, often less.
  • It's not a memory issue. Server has 32 GB of RAM, with 24 GB remaining available for use. Fulcrum is only using about 3 GB.

I'm running on Debian 12 via a Dell PowerEdge server.

My fulcrum.conf file is as follows based on recommendations in the documenation:

# Data will be stored here.
datadir = /mnt/bitcoin-data/fulcrum

# bitcoind RPC
bitcoind = 127.0.0.1:8332
rpccookie = /mnt/bitcoin-data/bitcoin-core/.cookie

# listen for connections (non-SSL)
tcp = 0.0.0.0:50001
admin = 127.0.0.1:8000

# peer discovery
peering = false
announce = false
hostname = lnd.dla.local

# initial sync: expressed in MB; improves performance of initial sync
utxo_cache = 1000

# database RAM cache
db_mem = 1000

Also, my bitcoin.conf file contains the following line, as recommended in the documentation:

# ZeroMQ options required for Fulcrum (electrum server)
zmqpubhashblock=tcp://127.0.0.1:8433

Any ideas on how to speed up this initial sync? Did I do something wrong in my conf file, perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions