Bitcoin Forum

Bitcoin => Wallet software => Topic started by: Kulahin on September 30, 2020, 05:48:33 PM



Title: Bitcoin Core rescanning use only 1 CPU Core
Post by: Kulahin on September 30, 2020, 05:48:33 PM
When i run bitcoin-qt.exe with -zapwallettxes parameter, it rescan my wallet, but using only 1 of 20 core ~6.6% of maximum, and only 60-90 MB/sec reading on M2SSD drive. How can i add more cores for running QT ?

https://i.imgur.com/zNQMgJ3.png
bitcoin.conf = dbcache = 20000 par = 15 txindex = 1 addresstype = legacy proxy=127.0.0.1:9050 listen=1 bind=127.0.0.1 onlynet=onion datadir=E:\Roaming\Bitcoin blocksdir=E:\Roaming\Bitcoin


Title: Re: Bitcoin Core rescanning use only 1 CPU Core
Post by: DaveF on September 30, 2020, 07:43:26 PM
As far as I know and have seen it's locked to one core. Some people have hacked together ways around it but you would have to dig. I had a similar issue a year or so ago and in the end just said screw it and let it run for hours till it finished.

Others might be able to give you better advice, but I would just let it run. If you stop it and start again with other parameters and they don't work you just lost all the time it was running now.

-Dave


Title: Re: Bitcoin Core rescanning use only 1 CPU Core
Post by: khaled0111 on October 03, 2020, 07:19:55 PM
...
If he finds a way to make bitcoin-qt uses more cores, will this really speed up the rescanning process? I doubt it will!
Setting the dbcache value properly and using an ssd would be enough.
From the configuration shared in OP, the dbcache is set to 20000 which is way too much, in my opinion.


Title: Re: Bitcoin Core rescanning use only 1 CPU Core
Post by: nc50lc on October 04, 2020, 07:56:25 AM
From the configuration shared in OP, the dbcache is set to 20000 which is way too much, in my opinion.
If he has 32GB of RAM and more, there's no harm on using a high cache size.
The problem in the config is par=15 which limits his system on using 15cores while the default "0" will use all available cores if needed.

For the issue, OP might had just started the -reindex when he posted this thread.
At which point that there're no signature validation required for earlier blocks thus wont require a lot of CPU usage.
If not, there must be a bottleneck somewhere.


Title: Re: Bitcoin Core rescanning use only 1 CPU Core
Post by: Kulahin on October 04, 2020, 09:01:43 AM
PC has 128gb ram
i try to change -par and -dbcache parameters, nothing changes, bitcoin-qt always use 1 of 20 core.