Bitcoin Forum
May 10, 2024, 03:25:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Should I raise the default dbcache?  (Read 2269 times)
cellard (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
December 18, 2015, 02:03:16 AM
 #1

 -dbcache=<n>           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?
1715311527
Hero Member
*
Offline Offline

Posts: 1715311527

View Profile Personal Message (Offline)

Ignore
1715311527
Reply with quote  #2

1715311527
Report to moderator
1715311527
Hero Member
*
Offline Offline

Posts: 1715311527

View Profile Personal Message (Offline)

Ignore
1715311527
Reply with quote  #2

1715311527
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715311527
Hero Member
*
Offline Offline

Posts: 1715311527

View Profile Personal Message (Offline)

Ignore
1715311527
Reply with quote  #2

1715311527
Report to moderator
1715311527
Hero Member
*
Offline Offline

Posts: 1715311527

View Profile Personal Message (Offline)

Ignore
1715311527
Reply with quote  #2

1715311527
Report to moderator
vinaha
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
April 01, 2016, 01:55:43 PM
 #2

Can anyone answer this? Because I have the same question.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
April 02, 2016, 08:53:59 PM
 #3

-dbcache=<n>           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.

Im not really here, its just your imagination.
smuckrs
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 06, 2021, 10: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
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!