Command report

The Command report displays the memory usage statistics for the specified command names. To print the command report, specify the -C flag.

This report contains all the columns detailed in the common summary metrics as well as its own defined here:
Command
Indicates the command name.

If processes running this command use pages of size other than the base 4KB page size, and the -O pgsz=on option is set, these statistics are followed by breakdown statistics for each page size. The metrics reported in this per-page size summary are reported in the page size unit by default.

Examples:

  1. To display memory statistics about the yes command, with breakdown by process and categorized detailed statistics by segment, enter:
    # svmon -C yes -O summary=basic,pidlist=on,segment=category,process=on
    Unit: page
    ===============================================================================
    Command                              Inuse      Pin     Pgsp  Virtual
    yes                                  14405     5492        0    14404
    -------------------------------------------------------------------------------
         Pid Command          Inuse      Pin     Pgsp  Virtual
      217132 yes              14405     5492        0    14404
      397448 yes              14405     5492        0    14404
      372980 yes              14405     5492        0    14404
    
    ...............................................................................
    SYSTEM segments                      Inuse      Pin     Pgsp  Virtual
                                          6336     5488        0     6336
    
        Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
        2002         0 work kernel segment               m    396   343    0     396
    
    ...............................................................................
    EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                            37        4        0       36
    
        Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
         711         2 work process private             sm     19     4    0      19
       126a3         f work shared library data         sm     17     0    0      17
       1b70a         1 clnt code,/dev/hd2:338            s      1     0    -       -
    
    ...............................................................................
    SHARED segments                      Inuse      Pin     Pgsp  Virtual
                                          8032        0        0     8032
    
        Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
        502d         d work shared library text          m    502     0    0     502
                       Shared library text segment

    In this example, we are looking at the yes command. The report is divided in several sub-reports. The summary line for the command displays the Inuse memory, the Pin pages in memory, the paging space and virtual pages used by the command. The -O process=on option adds the process section, where we have the list of the processes for this command.

  2. To display memory statistics about the yes command, with breakdown by process and statistics by segment including file names, enter:
    # svmon -C yes -O summary=basic,segment=on,pidlist=on,filename=on
    Unit: page
    ===============================================================================
    Command                              Inuse      Pin     Pgsp  Virtual
    yes                                  14405     5492        0    14404
    
        Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
        502d         d work shared library text          m    502     0    0     502
                       Shared library text segment
        2002         0 work kernel segment               m    396   343    0     396
                       System segment
       13722         2 work process private             sm     19     4    0      19
                       pid(s)=397566
       1a72b         f work shared library data         sm     17     0    0      17
                       pid(s)=397566
       1b70a         1 clnt code,/dev/hd2:338            s      1     0    -       -
                            /usr/bin/yes                                           
                       pid(s)=397566, 295038, 217212

    This report displays for each segment its list of pids when the segment is in a process address space. It also displays the filename of all client and persistent segments.

  3. To display memory statistics about the init command, with breakdown by process, enter:
    # svmon -@ -C init -O commandline=on,segment=off,process=on          
    # svmon -@ -C init -O commandline=on,segment=off,process=on 
    Command line : svmon -@ -C init -O commandline=on,segment=off,process=on 
    Unit: page
    ===============================================================================
    Command                              Inuse      Pin     Pgsp  Virtual
    init                                 18484     8900        0    18469
    -------------------------------------------------------------------------------
         Pid Command          Inuse      Pin     Pgsp  Virtual
           1 init             18494     8900        0    18477
             WPAR=Global
      159976 init             18484     8900        0    18469
             WPAR=wp1
      233722 init             18484     8900        0    18469
             WPAR=wp2
      180562 init             18484     8900        0    18469
             WPAR=wp0
    -------------------------------------------------------------------------------

    In a WPAR context, the -@ flag combined with the -O process=on flag, adds WPAR information in the report. This example shows which init process belongs to which WPAR.