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.

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:

  • Minor alarm threshold—96 MB.

  • Severe alarm threshold—64 MB.

  • Critical alarm threshold—48 MB.

  • Normal state threshold—128 MB.

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%.