Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: hassenpfeffer on March 25, 2024, 11:38:32 AM



Title: bitcoin-qt very slow to sync
Post by: hassenpfeffer on March 25, 2024, 11:38:32 AM
I'm running bitcoin-qt and trying to pull down the entire blockchain,
which these days is about 600GB. It seems like just yesterday when
I was able to download the entire thing and it was closer to 250GB,
but actually 4-5 years ago.

The current operation is going much slower than before, and I'm
curious what might explain it. Often I have only 1 peer or 0 peers.
I've gotten overnight maybe 2GB. The peers chart shows very little
downloading activity, just a few vertical spikes, nothing sustained.

The utility iotop is telling me that bitcoin-qt is reading and writing
several megabytes per second however.

I'm currently at 97% downloaded so I assume I am downloading
blocks that many people have on hand. What could explain
the sporadic and slow downloading?


Title: Re: bitcoin-qt very slow to sync
Post by: NotATether on March 25, 2024, 12:31:32 PM
How much memory do you have?

Do you have an HDD or SSD?

Obviously, syncing will happen faster on a SSD than an HDD. With that being said, blocks from around the 97th percentile (or anything mined one year ago) are plagued with Ordinals transactions which are really heavy and take a long time to process, so that is probably the reason why verification has slowed down.

You can use the addnode RPC call to add some other peers if it's not connecting to any for some reason.


Title: Re: bitcoin-qt very slow to sync
Post by: Hamza2424 on March 25, 2024, 12:44:43 PM
_SNIP_

it's more likely possible that due to the limited number of peers paring the transmission is slow, there is also a possibility of a bandwidth issue with the peers, many other factors can affect speed as NotATether  mentioned your disk I/O also holds a significant role.


Title: Re: bitcoin-qt very slow to sync
Post by: hassenpfeffer on March 26, 2024, 12:37:48 AM
How much memory do you have?

Do you have an HDD or SSD?

Obviously, syncing will happen faster on a SSD than an HDD. With that being said, blocks from around the 97th percentile (or anything mined one year ago) are plagued with Ordinals transactions which are really heavy and take a long time to process, so that is probably the reason why verification has slowed down.

You can use the addnode RPC call to add some other peers if it's not connecting to any for some reason.

I have a 2TB HDD (circa ~2017) and a Core i5 4th gen (current generation being 14). I've used various Internet connections, some fast, some slow. I typically run it overnight.

I did a partial sync of just the first 250GB, maybe a year ago, I was using a Raspberry Pi 4 and my old circa-2010 250 GB SSD, and a 200mbs Spectrum connection. That went pretty quick.

The original time when I synced the full blockchain was at the beginning of the pandemic and it went very fast over LTE. During the pandemic my phone carrier gave my $30/month connection unlimited hotspot data. I was using the HDD then and a Core i5 5th gen.

If I use addnode RPC, whose server would I be adding?

Is there a risk that Ordinals might burden the blockchain and make it unusable?


Title: Re: bitcoin-qt very slow to sync
Post by: SquirrelJulietGarden on March 26, 2024, 09:26:27 AM
The easiest way to do is upgrade your RAM.
If you can afford to have a SSD, let's upgrade.

Check this tutorial to download Bitcoin Core too.

Sharing for Bitcoin Core download: the cheapest pay-per-hour VPS I found. (https://bitcointalk.org/index.php?topic=5434679.0)


Title: Re: bitcoin-qt very slow to sync
Post by: ABCbits on March 26, 2024, 09:35:46 AM
I did a partial sync of just the first 250GB, maybe a year ago, I was using a Raspberry Pi 4 and my old circa-2010 250 GB SSD, and a 200mbs Spectrum connection. That went pretty quick.

It's known Rasperrby Pi 4 (even you own 8GB ones) struggle to sync not only due to somewhat slow CPU, but also due to total UTXO above RAM size. Although if you haven't allocate Bitcoin Core to use most RAM, you can by do that by editing bitcoin.conf and add line dbcache=X where X is RAM which used by Bitcoin in MB.

The easiest way to do is upgrade your RAM.
If you can afford to have a SSD, let's upgrade.

Check this tutorial to download Bitcoin Core too.

Sharing for Bitcoin Core download: the cheapest pay-per-hour VPS I found. (https://bitcointalk.org/index.php?topic=5434679.0)

You can't really upgrade RAM capacity of Raspberry PPi 4, unless you're willing doing it the hard way[1].

[1] https://hackaday.com/2023/03/05/upgrade-ram-on-your-pi-4-the-fun-way/ (https://hackaday.com/2023/03/05/upgrade-ram-on-your-pi-4-the-fun-way/)


Title: Re: bitcoin-qt very slow to sync
Post by: LoyceV on March 26, 2024, 09:40:25 AM
Often I have only 1 peer or 0 peers.
Any chance you have a firewall, modem or ISP that's blocking connections?

Quote
The utility iotop is telling me that bitcoin-qt is reading and writing several megabytes per second however.
That's normal, especially when you're low on RAM. I counted several TB read/writes in total just to sync Bitcoin Core with 8 GB RAM.