From 9852572eb9fb4ba38a8561fa45cb7969b09bd9dc Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Tue, 20 Apr 2021 21:18:15 -0500 Subject: [PATCH] increase rolling slot width to 4M (#16583) --- runtime/src/accounts_index.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index d78fa87b81..eb2616fcff 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -307,9 +307,9 @@ pub struct RootsTracker { impl Default for RootsTracker { fn default() -> Self { // we expect to keep a rolling set of 400k slots around at a time - // 2M gives us plenty of extra room to handle a width 5x what we should need. - // cost is 2M bits of memory - RootsTracker::new(2097152) + // 4M gives us plenty of extra(?!) room to handle a width 10x what we should need. + // cost is 4M bits of memory, which is .5MB + RootsTracker::new(4194304) } }