This command displays information about the controller’s memory usage.
Show Memory [-all | -verify ]
Prerequisites
None
Parameters
-all
An optional switch to show information about all memory areas. If omitted only the main memory information is displayed.
-verify
An optional switch to examine the memory data structures looking for any errors. This switch should only be used if memory corruption is suspected. It may interfere with the real-time response of the controller.
Remarks
The Show keyword is optional for backwards compatibility.
All memory sizes are shown in megabytes or 2 ^ 20 = 1048576 bytes. “Segments” indicates the number of blocks into which the memory has been split either intentionally or due to fragmentation. In the information provided, “Free” indicates the amount of memory that is not being used and is still available for use. “Used” specifies the amount of memory that has already been allocated for use.
show memory with no switches displays the following information:
Main Memory:
Free: 9.2356 Mb, Segments: 14
Used: 2.7490 Mb, Segments: 2166show memory -all displays the following information:
Main Memory:
Free: 9.2356 Mb, Segments: 14
Used: 2.7490 Mb, Segments: 2166
System Memory:
Free: 0.1247 Mb, Segments: 1
Used: 0.1253 Mb, Segments: 240
Object Cache:
Free: 0.0789 Mb, Segments: 704
Servo I/O Buffers:
Used Segments: 2
File Descriptors:
Free: 39
Used: 25Main Memory is the partition that is available for user application programs (e.g. GPL programs) and application data.
System Memory shows the amount of memory used for internal system data structures. This does not include the memory used for the system software.
Object Cache shows the amount of memory in the cache of GPL objects. Additional objects are allocated from Main Memory as needed.
Servo I/O Buffers shows the number of buffers in use for servo communications.
File Descriptors shows the number of file or network connections available for use, and the number already used. If the number of free descriptors drops to 5 or less, the system may freeze during a subsequent I/O operation.
See Also