Cisco CRS-1 - Carrier Routing System Router Troubleshooting Manual page 216

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

Advertisement

Troubleshooting Process Memory
48216000
4821a000
4821e000
48222000
60100000
60102000
6010b000
60124000
.
.
.
fd214000
fd22e000
fd241000
Total Allocated Memory: 131072
Total Shared Memory: 978944
The output shows the starting address in memory and the size of memory allocated. For example, the
starting address for the first entry is 4817f000 and the size of the memory allocated is 4096 bytes.
The shared memory window is where processes share common memory space (shared memory is faster
than protected memory) but one process can write over the data of another process, causing memory
corruption.
The show processes memory job-id command displays information about the text, data, and stack usage
for the specified job ID.
A process has its own private memory space. A process cannot access the memory of another process.
Note
RP/0/RP0/CPU0:router# show processes memory 123
JID
123
The output shows the size of the text region (process executable), size of the data region (initialized and
uninitialized variable), size of the process stack, and size of the dynamically allocated memory.
The show memory compare command displays details about heap memory usage for all processes on
the router at different moments in time, comparing the results. This command is useful for detecting
patterns of memory usage during events such as restarting processes, configuring interfaces, or looking
for memory leaks.
RP/0/RP0/CPU0:router# show memory compare start
Successfully stored memory snapshot /harddisk:/malloc_dump/memcmp_start.out
RP/0/RP0/CPU0:router# show memory compare end
Successfully stored memory snapshot /harddisk:/malloc_dump/memcmp_end.out
RP/0/RP0/CPU0:router# show memory compare report
JID
---
346
303
335
61
You are now free to remove snapshot memcmp_start.out and memcmp_end.out under /p
Cisco IOS XR Troubleshooting Guide for the Cisco CRS-1 Router
9-206
16384
16384
16384
16384
8192
36864
102400
8192
106496
4096
49152
Text
Data
Stack
4096
4096
16384
name
mem before
----
----------
top_procs
584300
qsm
334144
sysdb_svr_local
1445844
i2c_server
14464
Allocated Memory
Allocated Memory
Allocated Memory
Allocated Memory
Shared Memory
Shared Memory
Shared Memory
Shared Memory
DLL Text liboradock.dll
DLL Data liboradock.dll
DLL Text librasf.dll
Dynamic
Process
241664
bgp_policy_reg_agent
mem after
difference mallocs restart
---------
---------- ------- -------
587052
2752
334920
776
1446004
160
14624
160
Chapter 9
Troubleshooting Memory
0
8
4
1
OL-21483-02

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents