mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
@@ -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 } },
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user