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

0
88


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

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

Pruning saves disk area however will increase disk I/O.
Rising dbcache may also help however not a lot for pruning.
Each could be completed in config-window. Thus, no want to alter bitcoin.conf.

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

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

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

  1. Enter which might 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 aspect
At first look it seem like I had issues connecting to responsive nodes.
Trying deeper into it, I discovered the sending aspect was by no means actually a problem.

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

Over time responsive nodes decrease their information charge.

Information is often 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 seems to be like they’re filling one enter queue.
That is typically a standard behaviour for queued techniques. They’re pumping. That is why you could have buffers.
Appears to be like like growing buffers won’t 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 purchasers view it is a preferable behaviour too.
Though my view as a person is bitcoin-qt can enhance its dropping technique, to not hassle 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 may’t inform a node what to do, purchasers want a technique to drop these nodes early.

Why do some nodes simply present as much as say hi there and go away 150 behind?
In all probability a form of handshake. However can we really want to carry them for some time?

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

Processing aspect
I would say the whole lot is ok. Neither reminiscence nor CPU are problematic.

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

Many due to Pieter and Murch for his or her fast response. Helped quite a bit!

Suggestions and corrections extremely appreciated!

LEAVE A REPLY

Please enter your comment!
Please enter your name here