You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the motivation for this PR?
There are so many memory above threshold alarm in nightly test
How did you do it?
Update the FRR memory threshold and make the alarm more readable
memory_increase_threshold, FRR has it's own memory management system, not return the memory to system immediately, increase the threshold.
1: top:zebra: update from 64 to 128M
2: frr_bgp: update from 32 to 64M
3: frr_zebra: update from 16 to 64M
memory_high_threshold, frr bgp memory usage related to the count of neighbors, increase the threshold. we need to set the threshold according to the count of neighbors in the further.
1: frr_bgp: update from 128 to 256M
How did you verify/test it?
Run nightly test
https://elastictest.org/scheduler/testplan/685ac58d2461750d1f5a11c9
Copy file name to clipboardExpand all lines: tests/common/plugins/memory_utilization/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,30 @@ The memory utilization plugin automatically monitors memory resources and genera
35
35
36
36
## Plugin Design
37
37
38
+
### Memory Utilization Plugin Summary
39
+
40
+
The memory utilization plugin for SONiC testing automatically monitors memory usage on the Device Under Test (DUT) before and after each test. Its main goals are to ensure that memory usage does not exceed configured thresholds and to detect memory leaks or abnormal increases during test execution.
41
+
42
+
**Key Features:**
43
+
-**Automatic Monitoring:** Runs for all tests unless explicitly disabled.
44
+
-**Configurable Thresholds:** Uses JSON files to define memory checks, commands, and thresholds (absolute values or percentages).
45
+
-**Multiple Monitors:** Supports system memory, process memory, docker containers, and FRR daemons.
46
+
-**Flexible Scope:** Allows global, HWSKU-specific, and test-specific configuration.
47
+
-**Failure Reporting:** Fails tests with detailed messages if thresholds are exceeded.
48
+
49
+
**How It Works:**
50
+
1.**Pre-test:** Collects baseline memory usage using configured commands and parsers.
51
+
2.**Post-test:** Collects memory usage again and compares with baseline.
52
+
3.**Validation:** Checks if usage exceeds high thresholds or if increase is above allowed limits.
53
+
4.**Reporting:** Fails the test if any check fails, with clear diagnostics.
54
+
55
+
**Configuration:**
56
+
- Thresholds can be absolute values, percentages, or both (the strictest applies).
57
+
- Can be disabled globally or per-test.
58
+
- Easily extendable for new memory monitors or custom thresholds.
59
+
60
+
This plugin helps maintain system stability and quickly identifies memory-related issues during SONiC test runs.
0 commit comments