Configuring the CPU Usage Alarm Threshold
Context
The CPU is the core of a device. When the system has a large number of routes, many CPU resources will be used. This degrades system performance and causes high packet loss or a delay in processing data. If high CPU usage occurs when processing data, the device can generate an alarm. This enables you to monitor CPU usage and optimize system performance.
-
CPU usage alarm threshold
When CPU usage reaches this threshold, the system generates an alarm.
-
CPU usage alarm recovery threshold
When CPU usage falls below this threshold, the system clears the alarm.
Procedure
- (Optional) Run display cpu-usage configuration [ slave | slot slot-id ]
The CPU usage configurations are displayed.
- Run system-view
The system view is displayed.
- Run cpu-usage threshold threshold-value [ restore restore-threshold-value ] [ slot slot-id ]
The CPU usage alarm threshold and CPU usage alarm recovery threshold are set.
By default, the CPU usage alarm threshold is 95% and the CPU usage alarm recovery threshold is 80%.