Val:~$ whoami

I am Val Glinskiy, network engineer specializing in data center networks. TIME magazine selected me as Person of the Year in 2006.

Search This Blog

Tuesday, May 11, 2010

Catching high CPU usage

Suddenly your router stops responding and forwarding traffic, you can telnet into it, response on the console is very slow. Few minutes later everything is back to normal and only "show process cpu history" shows that CPU was at 100% for some time, but what caused it remains a mystery. To catch a process(es) that might have contributed to the problem, add following command in global configuration mode:

process cpu threshold type process rising 70 interval 5 falling 30 interval 5

It will generate syslog message every time CPU usage exceeds 70% for 5 or more seconds and falls below 30%. For example:

May 10 23:50:23.146 EDT: %SYS-1-CPURISINGTHRESHOLD: Threshold: Process CPU Utilization(Total/Intr): 74%/26%, Top 3 processes(Pid/Util): 192/46%, 7/1%, 2/0%

Process id 192 contributed 46%. Let's see:

Router#sho proc cpu sor | i ^_192
192   904947881922327784 47 0.00% 0.18% 0.19% 0 IP Input

 It was "IP Input" which is responsible for process-switching IP packets. Now we have something to work with and can start troubleshooting.

4 comments:

  1. Anonymous12:37 PM

    Thank you very much for the great and with detailed example explanation. Can i ask you, if needed, some more questions as to what each command does. in the furuter

    ReplyDelete
  2. The hardware on a motherboard encourages the correspondence between the entirety of the gadgets in the computer, making them as basic to a framework's presentation as things, for example, the CPU or memory. Lian Li Lancool II

    ReplyDelete
  3. This valuable tip from a Microsoft Certified tech help master in a computer gathering is maybe not hard for a first time PC client to follow. As per computer technology specialists, you should do this basic activity once in 3 months. This isn't that badly designed either! best bluetooth headset for online teaching

    ReplyDelete
  4. This is there to assist you with adjusting the CPU to the CPU attachment. Cautiously get the CPU by the sides and surrender it to analyze the pins at the base. CPS Test

    ReplyDelete