]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2090 in SNORT/snort3 from ~MASHASAN/snort3:idle_reload to master
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 23 Mar 2020 13:18:40 +0000 (13:18 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Mon, 23 Mar 2020 13:18:40 +0000 (13:18 +0000)
Squashed commit of the following:

commit 77d0b2b990780864d9c6a3f67d076a9f14a216ea
Author: Masud Hasan <mashasan@cisco.com>
Date:   Thu Mar 19 12:34:45 2020 -0400

    reload: Setting higher maximum pruning when idle

src/main/snort_config.h

index a34264b7706013f9afdd9cf9384856cf02e56161..7bf773e7aed4b6dcb77c12a03ede75f11c30b1ed 100644 (file)
@@ -161,7 +161,8 @@ class ReloadResourceTuner
 {
 public:
     static const unsigned RELOAD_MAX_WORK_PER_PACKET = 3;
-    static const unsigned RELOAD_MAX_WORK_WHEN_IDLE = 10;
+    // be aggressive when idle as analyzer gets chance once in every second only due to daq timeout
+    static const unsigned RELOAD_MAX_WORK_WHEN_IDLE = 32767;
 
     virtual ~ReloadResourceTuner() = default;