]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Disable garbage collection based on sm_bytes for big systems
authorEric Bollengier <eric@baculasystems.com>
Tue, 8 Aug 2023 12:47:10 +0000 (14:47 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
When several hundred of jobs are running, dird_free_jcr() ends
up to call garbage collection all the time.

bacula/src/lib/mem_pool.c

index db5101c3a75cff5374feb744dcf6901b7ec1d0df..53be43d8df6313dad0e385eb046d497e5a49d5e4 100644 (file)
@@ -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();