memory-threshold

Use memory-threshold to set free-memory thresholds.

Use undo memory-threshold to restore the defaults.

Syntax

In standalone mode:

memory-threshold [ slot slot-number [ cpu cpu-number ] ] minor minor-value severe severe-value critical critical-value normal normal-value

undo memory-threshold [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

memory-threshold [ chassis chassis-number slot slot-number [ cpu cpu-number ] ] minor minor-value severe severe-value critical critical-value normal normal-value

undo memory-threshold [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Default

In Release 2150, free-memory thresholds are as follows:

In Release 2152 and later, free-memory thresholds are as follows:

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

minor minor-value: Specifies the minor alarm threshold in MB. This threshold must be equal to or less than the memory size of the specified card. Setting this threshold to 0 disables the minor alarm feature.

severe severe-value: Specifies the severe alarm threshold in MB. This threshold must be equal to or less than the minor alarm threshold. Setting this threshold to 0 disables the severe alarm feature.

critical critical-value: Specifies the critical alarm threshold in MB. This threshold must be equal to or less than the severe alarm threshold. Setting this threshold to 0 disables the critical alarm feature.

normal normal-value: Specifies the normal state threshold in MB. This threshold must be equal to or greater than the minor alarm threshold.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command sets thresholds for the active MPU or switching fabric module. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device by its slot number and the member ID. If you do not specify this option, the command sets thresholds for the global active MPU or switching fabric module. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number. The cpu-number argument must be 0.

Usage guidelines

To ensure correct operation and improve memory utilization, the system monitors the amount of free memory space in real time. When a free-memory threshold is exceeded, the system sends an alarm notification or an alarm-removed notification to affected feature modules or processes so they can take countermeasures. For more information about the conditions and rules for generating alarm notifications and alarm-removed notifications, see Fundamentals Configuration Guide.

Examples

# Set the minor alarm, severe alarm, critical alarm, and normal state thresholds to 64 MB, 48 MB, 32 MB, and 96 MB, respectively.

<Sysname> system-view
[Sysname] memory-threshold minor 64 severe 48 critical 32 normal 96

Related commands

display memory-threshold

memory-threshold usage