< Home

set memory-usage threshold

Function

The set memory-usage threshold command sets the memory usage threshold.

The undo set memory-usage threshold command restores the default memory usage threshold.

By default, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85% on the S5720-EI. The following describes the memory usage alarm threshold on other switch models:
  • If the memory capacity on the device is lower than or equal to 512 MB, the memory usage alarm threshold is 85% and the memory usage alarm recovery threshold is 80%.

  • If the memory capacity on the device is larger than 512 MB and smaller than or equal to 1.5 GB, the memory usage alarm threshold is 90% and the memory usage alarm recovery threshold is 85%.

  • If the memory capacity on the device is higher than 1.5 GB, the memory usage alarm threshold is 95% and the memory usage alarm recovery threshold is 90%.

Format

set memory-usage threshold threshold-value [ slot slot-id ]

undo set memory-usage threshold [ threshold-value ] [ slot slot-id ]

Parameters

Parameter Description Value

threshold-value

Specifies the memory usage threshold.

The value is an integer that ranges from 75 to 100.

slot slot-id

Specifies the memory usage threshold of a specified slot ID.

The value depends on the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can use the set memory-usage threshold command to set the memory usage threshold. When memory usage exceeds the threshold, the system logs the event and generates an alarm. By viewing log information, you can learn about memory usage.

Precautions

You are advised to use the default threshold. If the memory usage threshold is set too low, the system frequently generates alarms. If the memory usage threshold is set too high, you cannot learn about memory usage in a timely manner.

Example

# Set the memory usage threshold to 85%.

<HUAWEI> system-view
[HUAWEI] set memory-usage threshold 85
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >