From 53d65009a0451288505dd4250b533d0689b8cd08 Mon Sep 17 00:00:00 2001 From: sakridge Date: Tue, 5 Jan 2021 12:21:17 -0800 Subject: [PATCH] Lower recycle store count (#14429) Too many stores can cause swap usage which is detrimental to account store times. --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index e984c0e9d8..6909744290 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -56,7 +56,7 @@ const PAGE_SIZE: u64 = 4 * 1024; pub const DEFAULT_FILE_SIZE: u64 = PAGE_SIZE * 1024; pub const DEFAULT_NUM_THREADS: u32 = 8; pub const DEFAULT_NUM_DIRS: u32 = 4; -const MAX_RECYCLE_STORES: usize = 5000; +const MAX_RECYCLE_STORES: usize = 1000; const STORE_META_OVERHEAD: usize = 256; lazy_static! {