Cómo solucionar el problema de uso de CPU alto de los S-Switch

55 0 0 0

3 Common Causes of High CPU Usage

A high CPU usage may be caused by:

l   Hardware failure

l   Attacks

l   Network flapping (including STP and routing flapping)

l   Network loop


4 How to Locate the High CPU Usage Problem

4.1 Checking the Switch and Version Information

Run the display version and display device commands to check the switch version and component types. Record the information for follow-up operations.

                               Step 1     Run the display version command to view the switch software version.

# Run the display version command.

display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.160 (S7700 V200R007C00)
Copyright (C) 2000-2013 HUAWEI TECH CO., LTD
Quidway S7703 Terabit Routing Switch uptime is 0 week, 0 day, 1 hour, 3 minutes
BKP 0 version information:
1. PCB      Version  : LE02BAKB VER.A
2. Supporting PoE    : No
3. Board    Type     : ES0B017712P0
4. MPU Slot Quantity : 2
5. LPU Slot Quantity : 3
……

The VRP (R) software, Version 5.160 field indicates that this is an S7700 switch running V200R007.

                               Step 2     Run the display device command to check the switch model, whether the switch is in a cluster/stack, and service board types (only modular switches).

# Run the display device command to check the component types and status.

display device
S7712's Device status:  
Slot  Sub Type         Online    Power      Register       Status     Role       
-------------------------------------------------------------------------------  
6     -   ES0D0X4UXC00 Present   PowerOn    Registered     Normal     NA         
8     -   ES0D0F48TC00 Present   PowerOn    Registered     Normal     NA         
9     -   ES0D0G24SC00 Present   PowerOn    Registered     Normal     NA         
10    -   -            Present   PowerOff   Unregistered   -          NA         
14    -   ES0D00SRUA00 Present   PowerOn    Registered     Normal     Master     
PWR1  -   -            Present   PowerOn    Registered     Normal     NA         
CMU1  -   LE0DCMUA0000 Present   PowerOn    Registered     Normal     Master     
FAN1  -   -            Present   PowerOn    Registered     Normal     NA         
FAN2  -   -            Present   PowerOn    Registered     Normal     NA         
FAN3  -   -            Present   PowerOn    Registered     Normal     NA         
FAN4  -   -            Present   PowerOn    Registered     Normal     NA   

The preceding information shows that this is a stand-alone S7712, with the ES0D00SRUA00 (MPU), LE0DCMUA0000 (CMU), and ES0D0X4UXC00/ES0D0F48TC00/ES0D0G24SC00 (LPUs) installed.

----End

4.2 Checking the CPU Usage

Check the CPU usage as follows:

l   Run the display cpu-usage command to view the CPU usage.

After several seconds, run the display cpu-usage command again. The CPU Usage field still shows a large percentage value.

57b69f543bad9.jpg

A switch is considered running normally if its long-term average CPU usage does not exceed 80% and its highest temporary CPU usage does not exceed 95%.

Command

Command Description for Modular Switches

Command Description for Fixed Switches

display cpu-usage

Displays the CPU usage of the active MPU.

NOTE

Generally, the CPU usage of a standby MPU will not be high, so it is not displayed.

Displays the CPU usage of the switch.

display cpu-usage slot slot-id

l  Non-cluster: displays the CPU usage of the specified interface board.

l  Cluster: displays the CPU usage of the cluster.

l  Non-stack: displays the CPU usage of the switch when the slot-id value is 0.

l  Stack: displays the CPU usage of the switch specified by slot-id.

 

# Check the CPU usage of a non-cluster modular switch.

display cpu-usage
CPU Usage Stat. Cycle: 10 (Second)
CPU Usage         : 88% Max: 92%
CPU Usage Stat. Time : 2010-12-18  15:35:56
CPU utilization for five seconds: 68%: one minute: 60%: five minutes: 55%.
Max CPU Usage Stat. Time : 2015-01-26 20:08. 
 
TaskName        CPU  Runtime(CPU Tick High/Tick Low)  Task Explanation           
VIDL                 82%         8/ 4c8b1ff       DOPRA IDLE                     
OS                   12%         1/2c684bff       Operation System  
……

The preceding information shows that the CPU usage of the switch reaches 88%.

Follow-up: Find out the tasks occupying high CPU usage and focus on the top 3 tasks (in V200R005 and later versions, the tasks are listed in a descending order of CPU usage). For details, see 4.3 Determining Fault Causes According to the CPU Usage.

l   Check whether related alarms have been reported on the NMS.

When a switch connects to an NMS system, check whether there is a high CPU usage alarm on the NMS.

When the CPU usage exceeds the alarm threshold (set by the set cpu-usage threshold command in the system view, and the default CPU usage alarm threshold is 80%), the switch reports the following alarms to the NMS. Obtain the high CPU usage information according to the alarm messages.

           hwCPUUtilizationRising

           hwCPUUtilizationRisingAlarm

For details about the alarms, see 8.1.2 Alarm Information.

l   Check whether the log records a high CPU usage.

View the system log files or run the display logbuffer command to check whether the system has recorded logs about high CPU usage.

The system log may include the current or historical high CPU usage records.

Related log: VOSCPU/4/CPU_USAGE_HIGH. For details about this log, see 8.1.3 Log Information.

4.3 Determining Fault Causes According to the CPU Usage

Run the display cpu-usage command to view the top 3 tasks occupying high CPU usage (in V200R005 and later versions, the tasks are listed in a descending order of CPU usage).

Find out the reason why CPU usage is high and solution according to Table 4-1.

Table 4-1 Common tasks occupying high CPU usage and solution (x in the task names indicates the user login sequence)

57b6a3cf43f22.png
57b6a4fec19b8.png
57b6a508e3a7a.png
57b6a51b552c7.png


If the top tasks on your switch are not included in the preceding table, find out which services caused the high CPU usage according to 8.3 Tasks Occupying CPU Resource.

The preceding table is only a reference for you to locate high CPU usage problem. To fix the problem, see 5 How to Fix the High CPU Usage Problem.

Este artículo contiene más recursos

Es necesario Iniciar sesión para descargar o consultar. ¿Sin cuenta?Registrarse.

x
  • x
  • convención:

Responder

Responder
Debe iniciar sesión para responder la publicación Inicio de sesi | Registrarse

Aviso: Para garantizar sus legítimos derechos e intereses, la comunidad y los terceros no publicarán contenido que pueda generar riesgos legales a las partes, por ejemplo, pornografía, contenido político, contenido sobre juego, consumo y tráfico de drogas, así como contenido que viole los derechos de propiedad intelectual de terceros, por ejemplo, secretos comerciales, marcas, derechos de autor, patentes y privacidad personal. No comparta su cuenta ni su contraseña con terceros. Todas las operaciones realizadas usando su cuenta se considerarán como sus acciones y todas las consecuencias que estas acciones generen serán responsabilidad suya. Para obtener información detallada, consulte la “ Política de privacidad.”
Si el botón para adjuntar no está disponible, actualice Adobe Flash Player con la versión más reciente

¡Ingresa y disfruta de todos los beneficios para los miembros!

Aterrizaje
Respuesta rápida Desplácese hasta arriba