The cpu-overload-control command configures the CPU usage thresholds and adjustment factor of the leak rate.
The undo cpu-overload-control command restores the default CPU usage thresholds and adjustment factor of the leak rate.
By default, the level-1 CPU usage threshold is 95%, the level-2 CPU usage threshold is 98%, and the adjustment factor of the leak rate is 10.
cpu-overload-control { threshold1 threshold1–value | threshold2 threshold2–value | adjustfactor adjustfactor–value } * slot slot-id
undo cpu-overload-control { threshold1 threshold1–value | threshold2 threshold2–value | adjustfactor adjustfactor–value } * slot slot-id
Parameter | Description | Value |
---|---|---|
threshold1 threshold1–value | Specifies the level-1 CPU usage threshold. |
The value is an integer in the range from 70 to 95, in percentages. |
threshold2 threshold2–value | Specifies the level-2 CPU usage threshold. |
The value is an integer in the range from 71 to 100, in percentages. |
adjustfactor adjustfactor–value | Specifies the adjustment factor of the leak rate. |
The value is an integer in the range from 1 to 1000. |
slot slot-id | Specifies a slot ID. |
The value must be set according to the device configuration. |
Only when the CPU usage reaches the OLC start threshold (the same as the level-1 CPU usage threshold), the OLC function is started to lower the leak rate so that the rate of packets sent to the CPU is lowered. When the CPU usage reaches the level-2 CPU usage threshold, the system lowers the leak rate twice as fast. When the CPU usage falls below the OLC stop threshold (the level-1 CPU usage threshold minus 20%), the OLC function is stopped. The adjustment factor specifies the frequency at which the leak rate is adjusted. The smaller the adjustment factor, the faster the adjustment frequency, and vice versa. A smaller adjustment factor will allow the system to adjust more quickly to service changes but may lead t o flapping of the leak rate. The default leak rate is recommended.