Setting memory thresholds
To ensure correct operation and improve memory utilization, the system monitors the memory usage and the amount of free memory space in real time.
If the memory usage threshold is exceeded, the system generates and sends a trap.
If a free-memory threshold is exceeded, the system generates an alarm notification or an alarm-removed notification and sends it to affected service modules or processes.
The device supports the following free-memory thresholds:
Normal state threshold.
Minor alarm threshold.
Severe alarm threshold.
Critical alarm threshold.
Table 14 and Figure 4 show how the device generates notifications based on the free-memory thresholds.
Table 14: Memory alarm notifications and memory alarm-removed notifications
Notification | Triggering condition | Remarks |
---|---|---|
Minor alarm notification | The amount of free memory space decreases to or below the minor alarm threshold for the first time. | After generating and sending a minor alarm notification, the system does not generate and send any additional minor alarm notifications until the first minor alarm is removed. |
Severe alarm notification | The amount of free memory space decreases to or below the severe alarm threshold for the first time. | After generating and sending a severe alarm notification, the system does not generate and send any additional severe alarm notifications until the first severe alarm is removed. |
Critical alarm notification | The amount of free memory space decreases to or below the critical alarm threshold for the first time. | After generating and sending a critical alarm notification, the system does not generate and send any additional critical alarm notifications until the first critical alarm is removed. |
Critical alarm-removed notification | The amount of free memory space increases to or above the severe alarm threshold. | N/A |
Severe alarm-removed notification | The amount of free memory space increases to or above the minor alarm threshold. | N/A |
Minor alarm-removed notification | The amount of free memory space increases to or above the normal state threshold. | N/A |
Figure 38: Memory alarm notification and alarm-removed notification
To set memory thresholds:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Set free-memory thresholds. | memory-threshold [ slot slot-number [ cpu cpu-number ] ] minor minor-value severe severe-value critical critical-value normal normal-value | The defaults are as follows:
|
3. Set the memory usage threshold. | memory-threshold usage [ slot slot-number [ cpu cpu-number ] ] memory-threshold | By default, the memory usage threshold is 100%. |