Bitcoin Forum
May 12, 2024, 10:32:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin.conf Optimized to Download the Blockchain  (Read 235 times)
velhoti (OP)
Member
**
Offline Offline

Activity: 84
Merit: 28


View Profile
January 03, 2020, 10:16:03 PM
 #1

I am sync a full node but the download process is painfully slow, in a week I downloaded only ~95GB. I am using a pretty simple configuration:

Code:
txindex=1
#dbcache=2048

datadir=/<HDD_PATH>/.bitcoin
wallet=/<HDD_PATH>/.bitcoin/wallets/

rpcuser=<USER>
rpcpassword=<PASSWORD>


Is there a optimized configuration of bitcoin.conf focusing in download faster the blockchain?

My PC specs are not high, it is a i3-2375M CPU @ 1.50GHz with 4GB RAM. I also storing the blockchain in a external HDD USB 2.0, not sure if is a bottleneck. My bandwidth is 25 GB, but I believe that it is not a problem since I can download a 300GB file much more fast (maybe a day) that Bitcoin.

I've heard about the parameter -dbcach and tried it increasing to 2048, roughly half of my memory, but seems to have no effect here.
1715553149
Hero Member
*
Offline Offline

Posts: 1715553149

View Profile Personal Message (Offline)

Ignore
1715553149
Reply with quote  #2

1715553149
Report to moderator
1715553149
Hero Member
*
Offline Offline

Posts: 1715553149

View Profile Personal Message (Offline)

Ignore
1715553149
Reply with quote  #2

1715553149
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715553149
Hero Member
*
Offline Offline

Posts: 1715553149

View Profile Personal Message (Offline)

Ignore
1715553149
Reply with quote  #2

1715553149
Report to moderator
1715553149
Hero Member
*
Offline Offline

Posts: 1715553149

View Profile Personal Message (Offline)

Ignore
1715553149
Reply with quote  #2

1715553149
Report to moderator
1715553149
Hero Member
*
Offline Offline

Posts: 1715553149

View Profile Personal Message (Offline)

Ignore
1715553149
Reply with quote  #2

1715553149
Report to moderator
LoyceMobile
Hero Member
*****
Offline Offline

Activity: 1655
Merit: 687


LoyceV on the road. Or couch.


View Profile WWW
January 03, 2020, 10:20:58 PM
 #2

The main problems are USB, HDD and low RAM.

I don't think software configuration matters much as long as your not upgrading.

LoyceV on the road Advertise here for LN Don't deal with this account (exception)
Advertise here for LN Tip my kids Exchange LN (20 coins). 1% fee. No KYC <€50/month
My useful topics: Meritt & Trust & Moreee Art Advertise here for LN Foru[url=https://bitcointalk.org/m
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
January 03, 2020, 10:25:11 PM
 #3

My bandwidth is 25 GB, but I believe that it is not a problem since I can download a 300GB file much more fast (maybe a day) that Bitcoin.

Keep in mind that your node needs to verify each block which is a CPU intensive task. Your disk also has to perform a lot of operations per second. Using an SSD makes a difference. 25 GB of bandwidth doesn't sound right. That's quite low.
velhoti (OP)
Member
**
Offline Offline

Activity: 84
Merit: 28


View Profile
January 03, 2020, 10:27:54 PM
Last edit: January 03, 2020, 10:43:11 PM by velhoti
 #4

If I download in my internal HDD with SATA and after copy the entire folder to the external HDD, will work, can be faster?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
January 03, 2020, 10:34:26 PM
 #5

If I download in my internal HDD with SATA and after copy the entire folder to the external HDD, will work, can be fastest?

It should be a bit faster since USB 2.0 is a huge bottleneck itself. Still, your RAM, CPU and HDD will slow the whole process down. It will take you ages to move the blockchain data to the external drive.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
January 03, 2020, 10:37:12 PM
 #6

Most likely it will be "faster"... but bear in mind that is a relative term. If the internal drive is still a HDD and not an SSD, then the gains aren't likely to be very big.

Also, your CPU+RAM is relatively weak... That might be causing RAM Paging, which will be placing further strain on your HDD and memory controllers etc.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
velhoti (OP)
Member
**
Offline Offline

Activity: 84
Merit: 28


View Profile
January 03, 2020, 10:43:44 PM
 #7

I edited the post changing "fastest" to "faster", sorry the error. This is really what I want, since I won't upgrade my specs now a bit increase in velocity is what i can have.
LoyceMobile
Hero Member
*****
Offline Offline

Activity: 1655
Merit: 687


LoyceV on the road. Or couch.


View Profile WWW
January 03, 2020, 10:56:14 PM
 #8

This is really what I want, since I won't upgrade my specs
You may be surprised how cheap a ram upgrade would be. If your PC can handle it, it'll be a large overall improvement, not just for Bitcoin Core. The same if you replace your hdd for a ssd: you'll never want to go back.

LoyceV on the road Advertise here for LN Don't deal with this account (exception)
Advertise here for LN Tip my kids Exchange LN (20 coins). 1% fee. No KYC <€50/month
My useful topics: Meritt & Trust & Moreee Art Advertise here for LN Foru[url=https://bitcointalk.org/m
BitMaxz
Legendary
*
Online Online

Activity: 3248
Merit: 2971


Block halving is coming.


View Profile WWW
January 03, 2020, 11:19:18 PM
 #9

Agree with the above increasing ram memory will improve your syncing blockchain.

And edit dbcache and remove the "#" (to enable it) under your bitcoin.conf to speed up the syncing.
Follow this suggested below.

If you have a lot of RAM (4 or more), you can open the bitcoin.conf file and add the following line:
Code:
dbcache=<n>
where <n> is an amount of memory in MB. If you have 4 GB RAM, I suggest you set it to 1000 so dbcache=1000. If you have 8 GB, I recommend 4000. If you have more RAM, you can set it to be higher, but after around 8000 setting it higher stops being any more helpful.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
velhoti (OP)
Member
**
Offline Offline

Activity: 84
Merit: 28


View Profile
January 03, 2020, 11:36:54 PM
 #10

Agree with the above increasing ram memory will improve your syncing blockchain.

And edit dbcache and remove the "#" (to enable it) under your bitcoin.conf to speed up the syncing.
Follow this suggested below.

If you have a lot of RAM (4 or more), you can open the bitcoin.conf file and add the following line:
Code:
dbcache=<n>
where <n> is an amount of memory in MB. If you have 4 GB RAM, I suggest you set it to 1000 so dbcache=1000. If you have 8 GB, I recommend 4000. If you have more RAM, you can set it to be higher, but after around 8000 setting it higher stops being any more helpful.

I was using this configuration but my PC was freezing the mouse and video by lack of memory, and I had no sensitive increase in sync velocity, so I commented but keep it on file.
BitMaxz
Legendary
*
Online Online

Activity: 3248
Merit: 2971


Block halving is coming.


View Profile WWW
January 04, 2020, 08:57:59 PM
 #11


I was using this configuration but my PC was freezing the mouse and video by lack of memory, and I had no sensitive increase in sync velocity, so I commented but keep it on file.

Try to decrease it until you find the stable one and keep monitoring your ram.

Try to start at 100 (dbcache=100) and add this "maxmempool=100" then monitor the ram then increase the dbcache if there are still available ram space and put the same value on maxmempool.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!