Using Show Process And Top Processes Commands - Cisco CRS-1 - Carrier Routing System Router Troubleshooting Manual

Ios xr troubleshooting guide
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Troubleshooting High CPU Utilization and Process Timeouts

Using show process and top processes Commands

To troubleshoot high CPU utilization due to one of the above reasons, use the following commands:
If your system is running Release 3.8.0, 3.8.1, 3.8.2, or 3.9.0 software, you should not run the
Caution
follow process and follow job commands, because these can cause a kernel crash at the target node.
Therefore, for these software releases, you should use other available commands for troubleshooting and
call Cisco Technical Support if the problem is not resolved. (This crash behavior does not occur for
releases other than the ones listed.)
The following example shows the processing using the CPU.
RP/0/RP0/CPU0:router# show processes cpu | exclude 0%
CPU utilization for one minute: 100%; five minutes: 100%; fifteen minutes: 100%
PID
24615
65647
RP/0/RP0/CPU0:CIPC2-VAN#
RP/0/RP0/CPU0:CIPC2-VAN#show process block loc 0/0/cpu0
Jid
54
51
51
72
72
72
72
52
50
216
246
246
Cisco IOS XR Troubleshooting Guide for the Cisco CRS-1 Router
8-186
From the output of the command, you notice that the top two processes use more memory than the
next eight. It is possible that this indicates a problem.
You continue by considering the context of this CPU usage. You notice that the top process is OSPF,
so you run commands to show whether there are packet drops occurring on the connections that use
OSPF. If there are OSPF packet drops, there might be a problem with OSPF that needs attention.
You continue by troubleshooting OSPF. After correcting the OSPF problem, you can rerun the top
processes command to verify that the CPU usage by the OSPF has been reduced.
show processes cpu | exclude 0% 0% 0%—Displays all processes currently using the CPU. The
sample output displays high percentages. Run this command multiple times.
top processes—Displays the processes with the most CPU usage.
The top processes command displays almost real-time CPU and memory utilization, and updates
several times per minute. The show processes cpu command displays data that has been collected
for all process IDs over the past one, five and 15 minute intervals. Both methods provide valuable
information.
show processes blocked location location-id (Run this command multiple times)
show process process_name location location-id
follow process process-id location location-id
1Min
5Min
15Min Process
98%
97%
97% syslog_dev
1%
1%
1% bfd_agent
Pid Tid
8202
1
20502
2
20502
3
20503
6
20503
7
20503
8
20503
9
20507
1
20508
2
24610
1
reddrv_listener Reply
90234
1
90234
5
<--!!!
Name State
Blocked-on
ksh Reply
attachd Reply
20500
attachd Reply
qnet Reply
20500
qnet Reply
20500
qnet Reply
20500
qnet Reply
20500
ksh-aux Reply
attach_server Reply
20500
spa_xge_v2 Reply
24615
spa_xge_v2 Mutex
90234-01 #1
Chapter 8
Process Monitoring and Troubleshooting
0%
0%
8199
devc-ser8250
eth_server
8204
mqueue
eth_server
eth_server
eth_server
eth_server
8199
devc-ser8250
8204
mqueue
eth_server
syslog_dev
<--!!!
OL-21483-02

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents