Tuesday, November 26, 2024
HomeBitcoinTips on how to enhance bitcoin-qt when downloading blockchain? (very technical, dev...

Tips on how to enhance bitcoin-qt when downloading blockchain? (very technical, dev views appreciated)


Brief and easy reply to my preliminary downside relating to downloading the blockchain: You may want higher {hardware}! 🙂

In abstract bitcoin-qt runs out of the field.
So don’t fumble round. Until you actually need to.

Pruning saves disk area however will increase disk I/O.
Growing dbcache can assist however not a lot for pruning.
Each could be achieved in config-window. Thus, no want to vary bitcoin.conf.

Plus, … I have not talked about it recently, have I? … do not use USB-Sticks! 🙂

Having that out of my approach let’s dive into my “actual” query.

If we have a look at it from a queueing principle perspective we now have three fields to think about.

  1. Enter which can be the nodes you’re feasting on.
  2. Processing the place your {hardware} and configuration comes into play.
  3. Output writing to disk in our case.

Enter facet
At first look it appear like I had issues connecting to responsive nodes.
Trying deeper into it, I discovered the sending facet was by no means actually a problem.

The sending behaviour of nodes in common over an extended interval made me distinguish three essential varieties.
A couple of are sending MB, some just a few KB and rather a lot simply 150 Bytes then drop out

Over time responsive nodes decrease their information fee.

Knowledge is normally coming in bulks. All nodes ship in parallel many MB/s after which cease for a number of minutes. Whereas my CPU and disk are consistently busy. So it appears like they’re filling one enter queue.
That is typically a common behaviour for queued programs. They’re pumping. That is why you might have buffers.
Seems to be like growing buffers is not going to assistance on my machine, since there’s already loads of headroom.

Sending at excessive information charges and slowing down over time is sensible for the nodes to distribute load on different nodes. From a shoppers view it is a preferable behaviour too.
Though my view as a person is bitcoin-qt can enhance its dropping technique, to not trouble nodes who did their fair proportion and focus extra on nonetheless very responsive nodes.

Sending KB even considerably erratically at low information charges is not actually useful.
Since in a free community you’ll be able to’t inform a node what to do, shoppers want a method to drop these nodes early.

Why do some nodes simply present as much as say hey and depart 150 behind?
In all probability a sort of handshake. However can we really need to carry them for some time?

In brief: Sure, technically there’s room for enchancment. However is it definitely worth the effort?

Processing facet
I might say every little thing is okay. Neither reminiscence nor CPU are problematic.

Output facet
Disk I/O is a matter, at the very least for me.
As Pieter identified pruning prevents optimum caching.
I am reluctant to guage on this matter with out thorough understanding.
However my first strategy could be lowering the variety of information concerned.

Many because of Pieter and Murch for his or her fast response. Helped rather a lot!

Suggestions and corrections extremely appreciated!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments