]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4030: memory: change NOW type counts to SUM type, where necessary
authorMichael Matirko (mmatirko) <mmatirko@cisco.com>
Fri, 29 Sep 2023 16:21:30 +0000 (16:21 +0000)
committerSteven Baigal (sbaigal) <sbaigal@cisco.com>
Fri, 29 Sep 2023 16:21:30 +0000 (16:21 +0000)
Merge in SNORT/snort3 from ~MMATIRKO/snort3:now_pegs to master

Squashed commit of the following:

commit 82c5c10e13933d003f8907a41c8bdee48541a381
Author: Michael Matirko <mmatirko@cisco.com>
Date:   Wed Sep 27 15:27:54 2023 -0400

    memory: change NOW type counts to SUM type, where necessary

src/memory/memory_module.cc

index e25f12e66aea4e98a2a83f68f63d77b410255971..f13d8818f04b847b76c46d7c69c4e7ffdaa3009d 100644 (file)
@@ -64,15 +64,15 @@ const PegInfo mem_pegs[] =
     { CountType::NOW, "start_up_use", "memory used before packet processing" },
     { CountType::NOW, "cur_in_use", "current memory used" },
     { CountType::MAX, "max_in_use", "maximum memory used" },
-    { CountType::NOW, "epochs", "number of memory updates" },
+    { CountType::SUM, "epochs", "number of memory updates" },
     { CountType::NOW, "allocated", "total amount of memory allocated by packet threads" },
     { CountType::NOW, "deallocated", "total amount of memory deallocated by packet threads" },
-    { CountType::NOW, "reap_cycles", "number of actionable over-limit conditions" },
-    { CountType::NOW, "reap_attempts", "attempts to reclaim memory" },
-    { CountType::NOW, "reap_failures", "failures to reclaim memory" },
-    { CountType::NOW, "reap_aborts", "abort pruning before target due to process under limit" },
-    { CountType::NOW, "reap_decrease", "total amount of the decrease in thread memory while process over limit" },
-    { CountType::NOW, "reap_increase", "total amount of the increase in thread memory while process over limit" },
+    { CountType::SUM, "reap_cycles", "number of actionable over-limit conditions" },
+    { CountType::SUM, "reap_attempts", "attempts to reclaim memory" },
+    { CountType::SUM, "reap_failures", "failures to reclaim memory" },
+    { CountType::SUM, "reap_aborts", "abort pruning before target due to process under limit" },
+    { CountType::SUM, "reap_decrease", "total amount of the decrease in thread memory while process over limit" },
+    { CountType::SUM, "reap_increase", "total amount of the increase in thread memory while process over limit" },
     { CountType::NOW, "app_all", "total bytes allocated by application" },
     { CountType::NOW, "active", "total bytes allocated in active pages" },
     { CountType::NOW, "resident", "maximum bytes physically resident" },