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 results in the delay in processing data or causes high packet loss. During data processing, if the device can generate an alarm when high CPU usage occurs, you can effectively monitor CPU usage and optimize system performance to ensure system stability.
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%.