Bitcoin Forum
May 09, 2024, 05:03:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Big periods of inactivity while syncing the blockchain  (Read 110 times)
cellard (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
January 21, 2018, 03:44:36 PM
 #1



As you can see there, it takes a long time between download activity to start, then it stops again, has a big period of inactivity, and then downloads a bit more, has another period of inactivity... it's really annoying. Sometimes it just wouldn't start downloading again, and I have to end up closing and opening again the client. This has been happening to me since the early Bitcoin-qt days. My connectivity is good as far as I know, I got a decent amount of peers connected.
1715274204
Hero Member
*
Offline Offline

Posts: 1715274204

View Profile Personal Message (Offline)

Ignore
1715274204
Reply with quote  #2

1715274204
Report to moderator
1715274204
Hero Member
*
Offline Offline

Posts: 1715274204

View Profile Personal Message (Offline)

Ignore
1715274204
Reply with quote  #2

1715274204
Report to moderator
1715274204
Hero Member
*
Offline Offline

Posts: 1715274204

View Profile Personal Message (Offline)

Ignore
1715274204
Reply with quote  #2

1715274204
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715274204
Hero Member
*
Offline Offline

Posts: 1715274204

View Profile Personal Message (Offline)

Ignore
1715274204
Reply with quote  #2

1715274204
Report to moderator
1715274204
Hero Member
*
Offline Offline

Posts: 1715274204

View Profile Personal Message (Offline)

Ignore
1715274204
Reply with quote  #2

1715274204
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4177



View Profile
January 21, 2018, 03:53:24 PM
 #2

It takes a lot more than your internet to synchronize your wallet. The common issue is with the CPU. Try opening your task manager and see if the usage is rising as the download stops.

Else, if you increase your dbcache, it would certainly help you with the synchonizing significantly.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
cellard (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
January 21, 2018, 05:01:38 PM
 #3

It takes a lot more than your internet to synchronize your wallet. The common issue is with the CPU. Try opening your task manager and see if the usage is rising as the download stops.

Else, if you increase your dbcache, it would certainly help you with the synchonizing significantly.

What dbcache value should I be using and what does this dbcache value is choosen in respect to? like depending on how much RAM you got, or CPU power?

I've got 8 gigs of RAM, I got a pretty old CPU tho, it's a 2008 quadcore, but still serves me well in most tasks. Modern CPU's have the Intel Management spywarefest so I never bothered updating.

I will try to monitor later the CPU cycles and see if they go during these gaps, probably could be that it's processing the blocks and can't download and process at the same time??
fabioganga
Full Member
***
Offline Offline

Activity: 478
Merit: 113



View Profile WWW
January 21, 2018, 05:52:06 PM
 #4



As you can see there, it takes a long time between download activity to start, then it stops again, has a big period of inactivity, and then downloads a bit more, has another period of inactivity... it's really annoying. Sometimes it just wouldn't start downloading again, and I have to end up closing and opening again the client. This has been happening to me since the early Bitcoin-qt days. My connectivity is good as far as I know, I got a decent amount of peers connected.

Try launching your wallet adding this paramatere: -dbcache=500

You can also put this same instruction in the bitcoin.conf file if you prefer.
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16624


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
January 21, 2018, 05:54:56 PM
 #5

I will try to monitor later the CPU cycles and see if they go during these gaps, probably could be that it's processing the blocks and can't download and process at the same time??
I've noticed the same: it downloads in batches, then processes them.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
January 22, 2018, 04:44:19 AM
 #6

syncing is NOT just simply about downloading all the blocks... Your node must then validate each and every block... which involves validating each and every transaction inside each and every block and making sure that signatures and hashes all match up as they should.

This is relatively CPU intensive work... Older CPUs (even quadcores) will struggle.

The wallet will download large chunks of data and then validate it before downloading more data... and with a decent network connection, it is able to fill the data "buffer" a lot faster than the CPU can process it all. So, it quite often looks like it is "doing nothing" if you just look at the network activity. Take a look at your CPU usage while syncing, I'm sure you'll see a VERY different usage pattern Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!