[gpmem] GPLIB memory diagnostic commands

GPLIB (general purpose library) memory diagnostic commands provide a detailed breakdown of all memory currently allocated on the TX board. The TX kernel GPLIB manages all memory control on the board. Use the following GPLIB memory diagnostic commands to identify memory corruption issues:

[gpmem] commands

Description

cfg

Displays pool configuration settings.

listchk

Traverses a list verifying list consistency. [v] = verbose.

chkpools

Finds all GPLIB pools. Checks the following:

[l]: Lists

[P]: BKs

[z]: Zero-fill

mem

Shows memory usage.

This command is also present in the [con] Standard commands.

memwalk

Walks a memory chain (following link pointers).

pbk

Displays memory area as a !pbk (pooled memory block).

pool

Displays memory area as a !poo (pooled memory descriptor).

pools

Displays all memory pools on the system, including:

  • Pool Name: Name describing the purpose of the memory pool.

  • Free: Number of buffers assigned to the pool but not currently allocated.

  • State: Memory depletion state (for limited pools).

  • Curr: Number of buffers currently allocated from the pool.

  • Max: Maximum number of buffers ever allocated (maximum value of Curr).

  • Total: Total number of buffer allocations made using the pool.

  • Failed: Number of times an allocation attempt from the pool failed.

 

This command is also present in the [con] Standard commands.

prg

Displays memory area as a !prg (pooled memory region).

total

Shows total dynamic memory usage (MEM_INFO_TOTAL).

This command is also present in the [con] Standard commands.

usage

Displays limited pool memory usage.

This command is also present in the [con] Standard commands.