Skip to content

Commit 879b390

Browse files
sipaPhilip Kaufmann
authored andcommitted
Increase default dbcache to 100 MiB
1 parent 29ecccb commit 879b390

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ std::string HelpMessage(HelpMessageMode hmm)
196196
strUsage += " -testnet " + _("Use the test network") + "\n";
197197
strUsage += " -pid=<file> " + _("Specify pid file (default: bitcoind.pid)") + "\n";
198198
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n";
199-
strUsage += " -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n";
199+
strUsage += " -dbcache=<n> " + _("Set database cache size in megabytes (default: 100)") + "\n";
200200
strUsage += " -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n";
201201
strUsage += " -proxy=<ip:port> " + _("Connect through SOCKS proxy") + "\n";
202202
strUsage += " -socks=<n> " + _("Select SOCKS version for -proxy (4 or 5, default: 5)") + "\n";
@@ -776,7 +776,7 @@ bool AppInit2(boost::thread_group& threadGroup)
776776
}
777777

778778
// cache size calculations
779-
size_t nTotalCache = GetArg("-dbcache", 25) << 20;
779+
size_t nTotalCache = GetArg("-dbcache", 100) << 20;
780780
if (nTotalCache < (1 << 22))
781781
nTotalCache = (1 << 22); // total cache cannot be less than 4 MiB
782782
size_t nBlockTreeDBCache = nTotalCache / 8;

src/qt/optionsmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void OptionsModel::Init()
8484
#endif
8585

8686
if (!settings.contains("nDatabaseCache"))
87-
settings.setValue("nDatabaseCache", 25);
87+
settings.setValue("nDatabaseCache", 100);
8888
if (!SoftSetArg("-dbcache", settings.value("nDatabaseCache").toString().toStdString()))
8989
strOverriddenByCommandLine += "-dbcache ";
9090

0 commit comments

Comments
 (0)