Totalview® Reference Guide : PART I CLI Commands : Chapter 2 CLI Commands : dmstat
dmstat
Displays memory use information
Format 
dmstat
Arguments 
This command has no arguments
Description 
The dmstat command displays information on your program’s memory use, returning information in three parts:
Memory usage summary: The minimum and maximum amounts of memory used by the text and data segments, the heap, and the stack, as well as the virtual memory stack usage and the virtual memory size.
Individual process statistics: The amount of memory that each process is currently using.
Image information: The name of the image, the image’s text size, the image’s data size, and the set of processes using the image.
The following table describes the displayed columns:
Examples 
dmstat
dmstat is sensitive to the focus. Note this four-process program:
process: text data heap stack [stack_vm] vm_size
1 (9271): 1128.54K 16.15M 9976 10432 [16384]
 
image information:
image_name text data dpids
....ry/forked_mem_exampleLINUX 2524 16778479 1
/lib/i686/libpthread.so.0 32172 27948 1
/lib/i686/libc.so.6 1050688 122338 1
/lib/ld-linux.so.2 70240 10813 1
 
dfocus a dmstat
The CLI prints the following for a four-process program:
process: text data heap stack [stack_vm] vm_size
1 (9979): 1128.54K 16.15M 14072 273168 [ 278528] 17.69M
5 (9982): 1128.54K 16.15M 9976 10944 [ 16384] 17.44M
6 (9983): 1128.54K 16.15M 9976 10944 [ 16384] 17.44M
7 (9984): 1128.54K 16.15M 9976 10944 [ 16384] 17.44M
 
maximum:
1 (9979): 1128.54K 16.15M 14072 273168 [ 278528] 17.69M
minimum
5 (9982): 1128.54K 16.15M 9976 10944 [ 16384] 17.44M
 
image information:
image_name text data dpids
....ry/forked_mem_exampleLINUX 2524 16778479 1 5 6 7
/lib/i686/libpthread.so.0 32172 27948 1 5 6 7
/lib/i686/libc.so.6 1050688 122338 1 5 6 7
            /lib/ld-linux.so.2 70240 10813 1 5 6 7
Related Topics
“Generate a Memory Usage Report” in the MemoryScape in-product help
Opening MemoryScape to examine memory usage