From 5c58abb95f76ccc7548293d59bd5839f67f5843c Mon Sep 17 00:00:00 2001 From: qima Date: Thu, 3 Oct 2024 21:13:48 +0800 Subject: [PATCH] chore(node): change MAX_RECORDS_COUNT to 16k --- sn_networking/src/record_store.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sn_networking/src/record_store.rs b/sn_networking/src/record_store.rs index 3fe7e00309..11422038a6 100644 --- a/sn_networking/src/record_store.rs +++ b/sn_networking/src/record_store.rs @@ -49,12 +49,12 @@ use walkdir::{DirEntry, WalkDir}; use xor_name::XorName; // A spend record is at the size of 4KB roughly. -// Given chunk record is maxed at size of 512KB. +// Given chunk record is maxed at size of 4MB. // During Beta phase, it's almost one spend per chunk, -// which makes the average record size is around 256k. +// which makes the average record size is around 2MB. // Given we are targeting node size to be 32GB, -// this shall allow around 128K records. -const MAX_RECORDS_COUNT: usize = 128 * 1024; +// this shall allow around 16K records. +const MAX_RECORDS_COUNT: usize = 16 * 1024; /// The maximum number of records to cache in memory. const MAX_RECORDS_CACHE_SIZE: usize = 100;