check router cpu

Unanswered Question
Aug 24th, 2007
User Badges:

Hi,


How do we analyze and calculate the CPU loading of cisco router? enclosed the "sh proc cpu" for your refer. e.g.


interface uses 2% CPU loading

rounting tables 3% CPU loading

or something like.


Any suggestion is welcome


Best regards,





Attachment: 
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
leungcm Fri, 08/24/2007 - 03:02
User Badges:

Hi,


Thanks, how do we know the % of service loading?


e.g.

NAT 5% cpu loading

ACL 2% cpu loading

interface I/O 1% cpuloading.


or base on the services

e.g.

Radius authentication: 0.3%

TTY: 0.01%

IP NAT: 5%

etc.


If there is no this info, any idea for me to check the router CPU loading distribution? thanks


Best regard


thomas.anthony Fri, 08/24/2007 - 04:39
User Badges:

if you see your output for an Eg


CPU used for last 5 sec is 0.16% last last 1 Min is - 0.10% for last 5 min is - 0.11% by CDP Protocol


hope this Eg helps

Joseph W. Doherty Fri, 08/24/2007 - 04:35
User Badges:
  • Super Bronze, 10000 points or more

I don't believe you're going to find the level of detail your after, if you're trying to find out how the box is spending its time doing ALL its CPU work. Notice how the software routines don't add up to your 6% in your example. Believe they add up to the delta between the first parameter 6%/6% (although in this case rounding has them shown the same).


The first value of the 6%/6% is the overall load, which is the breakdown I think you're after. The second value is the "interrupt" load, sort of the load imposed by hardware doing primary functions, i.e. switching traffic. Neither of these, I believe, you can resolve to indivual functions.


If you saw something like 25%/5%, you wonder what's imposing the 20% over the "interrupt" load. This is what the % on the individual processes will show.

leungcm Fri, 08/24/2007 - 05:58
User Badges:

Hi,


Thanks for your info. How do we find the abnormal 20% "loading" if it is 25%/5%? Base on the sample file. which one is "interrupt load" and which one is "overall load"? please advice.


Best regards


leungcm Fri, 08/24/2007 - 08:34
User Badges:

Hi,


We try to sum the % (5 sec, 1 min and 5min). the result is not the same as total X% / Y%. Any idea?


Best regards


Joseph W. Doherty Fri, 08/24/2007 - 08:59
User Badges:
  • Super Bronze, 10000 points or more

Summing the percentages should add to the delta between overall/interrupt, but you don't see those numbers for other than the 5 sec, although you could compute it. E.g.


(sorry, can't control font)

aRouter#sh proc c s

CPU utilization for five seconds: 8%/4%; one minute: 8%; five minutes: 8%

PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process

33 3010540 477114623 6 1.39% 1.44% 1.44% 0 IP SLA Mon Event

5 4004160 370521 10806 0.90% 0.14% 0.11% 0 Check heaps

261 340 573 593 0.49% 0.10% 0.02% 322 Virtual Exec

225 828284 197434399 4 0.32% 0.32% 0.32% 0 IP SLA Mon Respo

78 11271936 25155565 448 0.24% 0.35% 0.36% 0 IP Input

40 182396 3118683 58 0.16% 0.14% 0.15% 0 Per-Second Jobs

244 37520 97293124 0 0.16% 0.17% 0.16% 0 RADIUS

3 287456 2176059 132 0.08% 0.03% 0.02% 0 OSPF-1 Hello

239 11732 31159586 0 0.08% 0.08% 0.08% 0 Mwheel Process

66 5672 12468287 0 0.08% 0.03% 0.02% 0 e1t1 Framer back

11 568 3116984 0 0.08% 0.00% 0.00% 0 IPC Deferred Por

17 868284 2008548 432 0.08% 0.02% 0.00% 0 ARP Input

55 20164 4688886 4 0.08% 0.00% 0.00% 0 mxt5100

240 637884 8559345 74 0.08% 0.06% 0.08% 0 HSRP (Standby)

217 2186980 11375287 192 0.08% 0.23% 0.25% 0 OER Master Contr

15 0 1 0 0.00% 0.00% 0.00% 0 Crash writer


.

.

.

See how the 5Sec column should add close to the delta of 4% (8% - 4%), actually above adds to 4.3.

leungcm Fri, 08/24/2007 - 09:11
User Badges:

Hi,


Does it mean that


X% -Y% = sume of "sort by 5sec" figure? if so, do we focus those "sort by 5 sec" process to solve the issue?


BTW. can we find the cpu loading distribution?

or similar infor? please advise. thanks


best regards



Joseph W. Doherty Fri, 08/24/2007 - 10:56
User Badges:
  • Super Bronze, 10000 points or more

Yes, believe X% - Y% = sum of "sort by 5sec" figure, or at least close to it.


No, don't think this will solve your issue because Y% is hidden from you.

Joseph W. Doherty Fri, 08/24/2007 - 08:52
User Badges:
  • Super Bronze, 10000 points or more

Overall load is first value, interrupt the second.

leungcm Sun, 08/26/2007 - 23:50
User Badges:

Hi,


we get the "sh proc output. Anything we can do to reduce the cpu loading? Thanks



Best regards


---

CPU utilization for five seconds: 25%/15%; one minute: 68%; five minutes: 42%

PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process

175 108730948 655701093 165 2.94% 0.50% 0.18% 0 IP SNMP

177 126200092 328032633 384 2.04% 0.40% 0.21% 0 SNMP ENGINE

69 179883224 875132455 205 1.39% 0.39% 0.44% 0 IP Input

176 29505828 327721843 90 1.06% 0.20% 0.04% 0 PDU DISPATCHER

156 1409947241094637462 128 0.90% 0.27% 0.33% 0 DSMP

147 127904432 4502360 28408 0.57% 0.56% 0.54% 0 Compute load avg

128 119806924 101963338 1175 0.57% 0.48% 0.50% 0 CCH323_CT

161 2930303321312172298 223 0.40% 0.34% 0.56% 0 VOIP_RTCP

29 46662308 66438608 702 0.08% 0.22% 0.17% 0 Net Background

158 7913064 44524362 177 0.08% 0.01% 0.00% 0 TSP

61 80929520 44745315 1808 0.08% 0.25% 0.20% 0 ISDN

11 0 2 0 0.00% 0.00% 0.00% 0 RM PROCESS

10 0 2 0 0.00% 0.00% 0.00% 0 RM PROCESS

12 0 2 0 0.00% 0.00% 0.00% 0 RM PROCESS

9 0 2 0 0.00% 0.00% 0.00% 0 RM PROCESS

16 0 1 0 0.00% 0.00% 0.00% 0 AAA_SERVER_DEADT

13 0 2 0 0.00% 0.00% 0.00% 0 CAS Process

14 0 2 0 0.00% 0.00% 0.00% 0 RM-AUTH PROCESS

15 1068 5145 207 0.00% 0.00% 0.00% 0 AAA high-capacit


guruprasadr Mon, 08/27/2007 - 22:39
User Badges:
  • Gold, 750 points or more

HI [PLS RATE if HELPS]


INFO: Total CPU Utilization is comprised of process and interrupt percentages.

Total CPU Utilization: 6%

Process Utilization: 0%

Interrupt Utilization: 6%

These values are found on the first line of the output:

CPU utilization for five seconds: x%/y%; one minute: a%; five minutes: b%

Total CPU Utilization: x%

Process Utilization: (x - y)%

Interrupt Utilization: y%

Process Utilization is the difference between the Total and Interrupt (x and y).

The one and five minute utilizations are exponentially decayed averages (rather

than an arithmetic average), therefore recent values have more influence on the

calculated average.


CPU Utilization is 6% (less than 20%) and there are no problems to report.


Hope I am Informative.


PLS RATE if HELPS



Best Regards,


Guru Prasad R

Actions

This Discussion