Increase the size of the tree cache:

This change will not significantly increase memory consumption
because most entries are pinned anyway.
This commit is contained in:
JoelKatz
2014-08-21 13:28:53 -07:00
committed by Nik Bougalis
parent 413218c4c4
commit 6b09e49c08
2 changed files with 3 additions and 2 deletions

View File

@@ -603,7 +603,7 @@ int Config::getSize (SizedItemName item)
{ siNodeCacheSize, { 16384, 32768, 131072, 262144, 0 } },
{ siNodeCacheAge, { 60, 90, 120, 900, 0 } },
{ siTreeCacheSize, { 8192, 65536, 131072, 131072, 0 } },
{ siTreeCacheSize, { 128000, 256000, 512000, 768000, 0 } },
{ siTreeCacheAge, { 30, 60, 90, 120, 900 } },
{ siSLECacheSize, { 4096, 8192, 16384, 65536, 0 } },

View File

@@ -72,7 +72,8 @@ Json::Value doGetCounts (RPC::Context& context)
ret["AL_hit_rate"] = AcceptedLedger::getCacheHitRate ();
ret["fullbelow_size"] = static_cast<int>(app.getFullBelowCache().size());
ret["treenode_size"] = app.getTreeNodeCache().getCacheSize();
ret["treenode_cache_size"] = app.getTreeNodeCache().getCacheSize();
ret["treenode_track_size"] = app.getTreeNodeCache().getTrackSize();
std::string uptime;
int s = UptimeTimer::getInstance ().getElapsedSeconds ();