Author

Topic: Should I raise the default dbcache? (Read 2285 times)

newbie
Activity: 1
Merit: 0
February 06, 2021, 05:48:26 PM
#4
Im not sure if 1024 is still the max.

Maximum is now 16384 for 64-bit machines.

Code:
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024;

https://github.com/bitcoin/bitcoin/commit/b3ed4236beb7f68e1720ceb3da15e0c3682ef629#diff-d102b6032635ce90158c1e6e614f03b50e4449aa46ce23370da5387a658342fdR25
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
April 02, 2016, 03:53:59 PM
#3
-dbcache=           Set database cache size in megabytes (4 to 1024, default: 100)

So I have a 4 GB system, default is 100.. why is it so low? and why is 1024 the max? There are systems with 64GB of ram out there but limit is 1024 to be used by the program?

Anyway, where should I raise this to, considering I have 4GB?

I put it on 4096 to sync, because it significantly reduces sync times (~8.5 hours on 2 cores, mechanical disk). Once Im done I remove the line from the bitcoin.conf though. What it does is reduce how often core needs to write changes to the database to disk. Im not sure if 1024 is still the max. A higher cache provides next to no benefits under normal circumstances AFAIK. Well it takes ages to shut down though, but I dont see that as a benefit.
member
Activity: 112
Merit: 10
April 01, 2016, 08:55:43 AM
#2
Can anyone answer this? Because I have the same question.
legendary
Activity: 1372
Merit: 1252
December 17, 2015, 09:03:16 PM
#1
 -dbcache=           Set database cache size in megabytes (4 to 1024, default: 100)

So I have a 4 GB system, default is 100.. why is it so low? and why is 1024 the max? There are systems with 64GB of ram out there but limit is 1024 to be used by the program?

Anyway, where should I raise this to, considering I have 4GB?
Jump to: