From bdd3dd1b4a91f52709a8f4c1b3b7bc27b7b7599b Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Wed, 11 Sep 2024 14:59:49 +0100 Subject: [PATCH] Reduce backlog threshold for GC --- .../Nethermind.Consensus/Processing/BlockchainProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Consensus/Processing/BlockchainProcessor.cs b/src/Nethermind/Nethermind.Consensus/Processing/BlockchainProcessor.cs index 1af54a33465..ef0cd3600b6 100644 --- a/src/Nethermind/Nethermind.Consensus/Processing/BlockchainProcessor.cs +++ b/src/Nethermind/Nethermind.Consensus/Processing/BlockchainProcessor.cs @@ -296,7 +296,7 @@ private Task RunProcessing() private void RunProcessingLoop() { - const int BlocksBacklogTriggeringManualGC = 20; + const int BlocksBacklogTriggeringManualGC = 4; const int MaxBlocksWithoutGC = 100; if (_logger.IsDebug) _logger.Debug($"Starting block processor - {_blockQueue.Count} blocks waiting in the queue.");