From bdba947c42add7d4ea6750f574aad0c67c0416d8 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 30 May 2013 12:54:40 -0700 Subject: [PATCH] Enlarge the immutable SLE cache. --- src/cpp/ripple/Config.cpp | 9 +++++++++ src/cpp/ripple/Config.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/cpp/ripple/Config.cpp b/src/cpp/ripple/Config.cpp index 6a0d3a4880..b695650afe 100644 --- a/src/cpp/ripple/Config.cpp +++ b/src/cpp/ripple/Config.cpp @@ -510,14 +510,23 @@ void Config::load() int Config::getSize(SizedItemName item) { SizedItem sizeTable[] = { // tiny small medium large huge + { siSweepInterval, { 10, 30, 60, 90, 120 } }, + { siLedgerFetch, { 2, 2, 3, 3, 3 } }, + { siValidationsSize, { 256, 256, 512, 1024, 1024 } }, { siValidationsAge, { 500, 500, 500, 500, 500 } }, + { siNodeCacheSize, { 8192, 65536, 262144, 2097152, 0 } }, { siNodeCacheAge, { 30, 60, 90, 300, 900 } }, + + { siSLECacheSize, { 4096, 8192, 16384, 65536, 0 } }, + { siSLECacheAge, { 30, 60, 90, 120, 300 } }, + { siLedgerSize, { 32, 128, 256, 2048, 0 } }, { siLedgerAge, { 30, 90, 180, 300, 900 } }, + { siHashNodeDBCache, { 4, 12, 24, 32, 64 } }, { siTxnDBCache, { 4, 12, 24, 32, 32 } }, { siLgrDBCache, { 4, 8, 16, 16, 16 } }, diff --git a/src/cpp/ripple/Config.h b/src/cpp/ripple/Config.h index 501d7aa529..581c7126e6 100644 --- a/src/cpp/ripple/Config.h +++ b/src/cpp/ripple/Config.h @@ -56,6 +56,8 @@ enum SizedItemName siValidationsAge, siNodeCacheSize, siNodeCacheAge, + siSLECacheSize, + siSLECacheAge, siLedgerSize, siLedgerAge, siLedgerFetch,