Cisco Cisco IOS Software Release 12.4(23)

Page de 12
 
Chunk Validation During Scheduler Heapcheck
  Configuration Examples for Chunk Validation During Scheduler Heapcheck
6
Cisco IOS Release 12.4(8)
Sample Output from the show chunk Command
The following is the sample output from the show chunk command when the chunk name is MallocLite:
Router(config)# show chunk | in Malloc
   20       16    65588     1636       77    1559   32816   MallocLite 
0x65EFC1C0
   96       16    65588      564       24     540   11392   MallocLite 
0x65F0C1F4
   44       16    65588     1022       53     969   20568   MallocLite 
0x65F1C228
   68       16    65588      743        9     734   15012   MallocLite 
0x656436C0
  128       16    65588      442       18     424    8960   MallocLite 
0x65F4C290
    8       16    65588     2337       19    2318   46840   MallocLite 
0x65FBC298
0x65F4CA60: 00000000 15A3C78B 00000000 60843474  .....#G.....`.4t
0x65F4CA70: 65F4C290 EF4321CD 00000000 00000000  etB.oC!M........
0x65F4CA80: 00000000 00000000 00000000 00000000  ................
0x65F4CA90: 00000000 00000000 00000000 00000000  ................
0x65F4CAA0: 00000000 00000000 00000000 00000000  ................
0x65F4CAB0: 00000000 00000000 00000000 00000000  ................
0x65F4CAC0: 00000000 00000000 00000000 00000000  ................
0x65F4CAD0: 00000000 00000000 00000000 00000000  ................
Sample Output from the scheduler heapcheck process Command
To check for the memory corruption of chunk structures, configure the scheduler heapcheck process 
command with the chunks keyword. The following examples show the sample output for the scheduler 
heapcheck process 
command with the checktype chunks as keywords:
Router(config)# scheduler heapcheck process memory checktype chunks 0x64A2BE60
From the show chunk command output you can select the chunk that needs to be configured:
Router# show chunk
Chunk Manager:
532 chunks created, 69 chunks destroyed
261 siblings created, 68 siblings trimmed
Chunk element  Block Maximum  Element Element Total
cfgsize Ohead   size element    inuse   freed Ohead    Name
   16        0    20052      995       28     967    4080   Managed Chunk 0x64A27040
   16        4    10052      412      412       0    3408   List Elements 0x64A2BE94
   16        4    11028      453       78     375    3728   (sibling) 0x6593ED74
By dumping the show memory output of the selected chunk you can get the allocator-pc value in the 
block header of the chunk that needs to be configured on the CLI.
Router# show memory 0x64A2BE60 0x64A2BEFF
64A2BE60: FD0110DF AB1234CD FFFE0000 00000000  }.._+.4M.~......
64A2BE70: 62D0D0A8 607F7B98 64A2E5A8 64A27024  bPP(`.{.d"e(d"p$
64A2BE80: 8000138A 00000001 60862A24 00000001  ........`.*$....
64A2BE90: 64A57F04 64A2E5D8 6593ED74 00000000  d%..d"eXe.mt....
64A2BEA0: 64A2BE48 64AB85A0 0000012C 0000019C  d">Hd+. ...,....
64A2BEB0: 00100014 00000000 0000084D 0000085C  ...........M...\
64A2BEC0: 00000184 00000014 00C10000 644F9EC0  .........A..dO.@
64A2BED0: 4C697374 20456C65 6D656E74 73000000  List Elements...