From c9df6134fa8f7d0e69f3c53d3a4922d810dd737e Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Wed, 6 Jan 2021 09:48:59 +0900 Subject: [PATCH] Save 7G mem on mainnet fixing AccIndex overalloc. (#14435) --- runtime/src/accounts_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index c1f1e4b72e..3f99779711 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -498,7 +498,7 @@ impl AccountsIndex { if w_account_entry.is_none() { let new_entry = Arc::new(AccountMapEntryInner { ref_count: AtomicU64::new(0), - slot_list: RwLock::new(SlotList::with_capacity(32)), + slot_list: RwLock::new(SlotList::with_capacity(1)), }); let mut w_account_maps = self.account_maps.write().unwrap(); let account_entry = w_account_maps.entry(*pubkey).or_insert_with(|| {