Debug Memory Commands Overview

Monitoring Memory

page 29-4

OmniSwitch 6600 Family Network Configuration Guide

April 2006

Debug Memory Commands Overview

The Debug Memory Commands provide monitoring of memory allocation and free memory. By provid-

ing a method to enable/disable memory monitoring and display memory usage reports, these commands 

can be used to monitor logging of events, leak detection, classification of memory allocations, detection of 

invalid free addresses, and maintenance of size statistics. Additionally, the following automatic outputs 

will occur under specific conditions: 

•

If there is an attempt to free an invalid address, the monitor will create a switch log message, cause a 

Post Mortem Dump (PMD) of the memory monitor variables and log, and suspend the task. For infor-

mation about using the 

show log pmd

 command to view the contents of a stored PMD file, see the 

chapter titled, “Memory Monitoring Commands” in the 

OmniSwitch CLI Reference Guide.

•

If a leak of unclassified memory is detected, the service will generate a sysTrace (System Trace) 

message. The system trace facility provides a consistent, high-level mechanism for capturing event 

records in a history buffer. Captured sysTrace information can be referenced for system debugging. For 

information about using the sysTrace utility to enable, disable or view sysTrace log information, see 

the chapter titled, “Memory Monitoring Commands” in the 

OmniSwitch CLI Reference Guide.

Configuring Debug Memory Commands

This section describes the Debug Memory commands, which include separate commands for enabling or 

disabling memory monitoring, as well as displaying memory log information, global statistics, task statis-

tics, and size statistics.

Enabling/Disabling Memory Monitoring Functions

The 

debug memory monitor

 command enables or disables the memory monitoring functions.

To enable memory monitoring, enter:

-> debug memory monitor enable

No confirmation message will appear onscreen.

To disable Memory Monitoring, enter:

-> debug memory monitor disable

No confirmation message will appear onscreen.

Page 624
Image 624
Open full-size image