Cisco Cisco IOS Software Release 12.4(23)
Chunk Validation During Scheduler Heapcheck
Configuration Examples for Chunk Validation During Scheduler Heapcheck
5
Cisco IOS Release 12.4(8)
Configuration Examples for Chunk Validation During Scheduler
Heapcheck
Heapcheck
This section provides the following configuration examples:
•
•
Configuring Chunk Structures: Example
Chunk validation is not enabled by default when the router boots and cannot be configured to
startup-config. You must explicitly configure the chunks keyword in the CLI once the router boots up.
The following example shows how to configure the chunks keyword and check for a given PC (sibling
as well as root):
startup-config. You must explicitly configure the chunks keyword in the CLI once the router boots up.
The following example shows how to configure the chunks keyword and check for a given PC (sibling
as well as root):
Router(config)# scheduler heapcheck process memory checktype chunks 0x607F7B98
Checktype value 0x0
mempool_check_type = 0x20, mempool_check_pc = 0x607F7B98
Sample Output from the show chunk Command
In this example the output is displayed for the show chunk command. The show chunk command
checks for the number of chunks and siblings created and destroyed.
checks for the number of chunks and siblings created and destroyed.
Router(config)# 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
0x6593F6F0: EF4321CD 00000000 00000000 00000000 oC!M............
0x6593F700: 0x6593ED74 EF4321CD 00000000 00000000 e.mtoC!M........
Configuring Malloc Lite-Chunks: Example
The following example shows how to configure the Malloc lite-chunks keyword and check for the
Malloc lite-chunk structures in the router memory:
Malloc lite-chunk structures in the router memory:
Router(config)# scheduler heapcheck process memory processor checktype lite-chunks
Router(config)# show run | in sched
scheduler heapcheck process memory processor checktype magic lite-chunks
+