Process and Memory Management Commands on Cisco IOS-XR Software show memory heap
SMR-289
Cisco IOS-XR System Management Command Reference
The following is sample output from the show memory heap command, specifying the allocated and free keywords and the job identifier:
RP/0/RP1/CPU0:router# show memory heap allocated free 5
Block Allocated List
Usize Size Address Name/ID/Caller
0x000008c1 0x000008cc 0x08029e7c 0x7c018a10
0x000004fc 0x00000504 0x08029554[0x18 0x30-byte objects: 0x1 allocd, 0x17 free]
caller(id)/usize/addr: 0x7c019278/0x28/0x8029574
0x000004f0 0x000004f8 0x0802bc00 0x7c02b6fc
0x0000037c 0x00000384 0x08029a60[0x18 0x20-byte objects: 0x1 allocd, 0x17 free]
caller(id)/usize/addr: 0x7c019b2c/0x1c/0x8029a80
0x0000031c 0x00000324 0x0802a7d0[0x20 0x14-byte objects: 0x20 allocd, 0x0 free]
caller(id)/usize/addr: 0x7c02b9e0/0x10/0x802a7f0,0x802a808,0x802a820,0x802a838,
0x802a850,0x802a868,0x802a880,0x802a898,0x802a8b0,0x802a8c8,0x802a8e0,0x802a8f8,
0x802a910,0x802a928,0x802a940,0x802a958,0x802a970,0x802a988,0x802a9a0,0x802a9b8,
0x802a9d0,0x802a9e8,0x802aa00,0x802aa18,0x802aa30,0x802aa48,0x802aa60,0x802aa78,
0x802aa90,0x802aaa8,0x802aac0,0x802aad8
0x0000031c 0x00000324 0x0802ac2c[0x20 0x14-byte objects: 0x20 allocd, 0x0 free]
caller(id)/usize/addr: 0x7c02b9e0/0x10/0x802ac4c,0x802ac64,0x802ac7c,0x802ac94,
0x802acac,0x802acc4,0x802acdc,0x802acf4,0x802ad0c,0x802ad24,0x802ad3c,0x802ad54,
0x802ad6c,0x802ad84,0x802ad9c,0x802adb4,0x802adcc,0x802ade4,0x802adfc,0x802ae14,
0x802ae2c,0x802ae44,0x802ae5c,0x802ae74,0x802ae8c,0x802aea4,0x802aebc,0x802aed4,
0x802aeec,0x802af04,0x802af1c,0x802af34
0x0000031c 0x00000324 0x0802b1a8[0x20 0x14-byte objects: 0x20 allocd, 0x0 free]
caller(id)/usize/addr: 0x7c02b9e0/0x10/0x802b1c8,0x802b1e0,0x802b1f8,0x802b210,
0x802b228,0x802b240,0x802b258,0x802b270,0x802b288,0x802b2a0,0x802b2b8,0x802b2d0,
0x802b2e8,0x802b300,0x802b318,0x802b330,0x802b348,0x802b360,0x802b378,0x802b390,
0x802b3a8,0x802b3c0,0x802b3d8,0x802b3f0,0x802b408,0x802b420,0x802b438,0x802b450,
0x802b468,0x802b480,0x802b498,0x802b4b0
0x0000031c 0x00000324 0x0802b8d4[0x20 0x14-byte objects: 0x19 allocd, 0x7 free]
caller(id)/usize/addr: 0x7c02b9e0/0x10/0x802b8f4,0x802b90c,0x802b924,0x802b93c,
0x802b954,0x802b96c,0x802b984,0x802b99c,0x802b9b4,0x802b9cc,0x802b9e4,0x802b9fc,
0x802ba14,0x802ba2c,0x802ba44,0x802ba5c,0x802ba74,0x802ba8c,0x802baa4,0x802babc,
0x802bad4,0x802baec,0x802bb04,0x802bb1c,0x802bb34
0x0000029c 0x000002a4 0x0802901c[0x20 0x10-byte objects: 0x4 allocd, 0x1c free]
caller(id)/usize/addr: 0x7c017178/0xc/0x802903c 0x7c00fb54/0xc/0x8029050 0x7c00
fb80/0xc/0x8029064 0x7c00fbb8/0xc/0x8029078
0x0000027c 0x00000284 0x080292c8[0x8 0x48-byte objects: 0x1 allocd, 0x7 free]
caller(id)/usize/addr: 0x7c018954/0x38/0x80292e8
0x00000080 0x00000088 0x08029dec 0x7c01936c
Block Free List
Size Address
0x00000078 0x0802a750
0x00000128 0x0802aafc
0x00000248 0x0802af58
0x000003f8 0x0802b4d4
0x00000ef8 0x0802c100
The following is sample output from the show memory heap command, specifying the summary keyword and the job identifier:
RP/0/RP1/CPU0:router# show memory heap summary 65
Malloc summary for pid 20495 process pcmciad:
Heapsize 65536: allocd 40332, free 16568, overhead 8636
Calls: mallocs 883; reallocs 3; frees 671; [core-allocs 4; core-frees 0]
Band size 16, element per block 48, nbuint 1
Completely free blocks: 0
Block alloced: 2, Block freed: 0
allocs: 85, frees: 20
allocmem: 1040, freemem: 496, overhead: 448