From 6b09e49c0851d82d476e304e38e593c455fbce10 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 21 Aug 2014 13:28:53 -0700 Subject: [PATCH] Increase the size of the tree cache: This change will not significantly increase memory consumption because most entries are pinned anyway. --- src/ripple/module/core/functional/Config.cpp | 2 +- src/ripple/module/rpc/handlers/GetCounts.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ripple/module/core/functional/Config.cpp b/src/ripple/module/core/functional/Config.cpp index f0edc5355..502d62d8e 100644 --- a/src/ripple/module/core/functional/Config.cpp +++ b/src/ripple/module/core/functional/Config.cpp @@ -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 } }, diff --git a/src/ripple/module/rpc/handlers/GetCounts.cpp b/src/ripple/module/rpc/handlers/GetCounts.cpp index e04ed50b5..c56f69045 100644 --- a/src/ripple/module/rpc/handlers/GetCounts.cpp +++ b/src/ripple/module/rpc/handlers/GetCounts.cpp @@ -72,7 +72,8 @@ Json::Value doGetCounts (RPC::Context& context) ret["AL_hit_rate"] = AcceptedLedger::getCacheHitRate (); ret["fullbelow_size"] = static_cast(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 ();