From: Eric Bollengier Date: Tue, 8 Aug 2023 12:47:10 +0000 (+0200) Subject: Disable garbage collection based on sm_bytes for big systems X-Git-Tag: Beta-15.0.0~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c75315a7c4a645aa13e524d12e7232dfd0a0989;p=thirdparty%2Fbacula.git Disable garbage collection based on sm_bytes for big systems When several hundred of jobs are running, dird_free_jcr() ends up to call garbage collection all the time. --- diff --git a/bacula/src/lib/mem_pool.c b/bacula/src/lib/mem_pool.c index db5101c3a..53be43d8d 100644 --- a/bacula/src/lib/mem_pool.c +++ b/bacula/src/lib/mem_pool.c @@ -377,8 +377,7 @@ void garbage_collect_memory_pool() return; } now = time(NULL); - if (now >= last_garbage_collection + garbage_interval || - sm_bytes > 500000) { + if (now >= last_garbage_collection + garbage_interval) { last_garbage_collection = now; V(mutex); garbage_collect_memory();