SVMON - part 1 PDF Print E-mail
User Rating: / 2
PoorBest 
Written by Michael Felt   

SVMON - Basic to Advanced usage (part 1)

Part 1

SVMON is the standard program for analyzing memory usage on AIX. SVMON - "The basics" - is what is covered in a AIX performance class (you see the arguments -G and -P and maybe a few more) but very little of the -O (options) that can be applied to get customized output.

In this "part 1" I will show how to get output similiar to commands taught/shown in a performance class - but customised so that units are in KB|MB|GB rather than in page/frame counts.

The -O option that modifies the output into so-called human-readable units is: -O unit=auto although I prefer being more specific to MB and use -O unit=MB

Classic SVMON

The classic svmon output is without any arguments - and is equivalent to svmon -G
michael@x071:[/tmp]svmon
               size       inuse        free         pin     virtual   mmode
memory       786432      761212       25220      151370      269851     Ded
pg space     262144        2499

               work        pers        clnt       other
pin          120912           0        3130       27328
in use       269851           0      491361

PageSize   PoolSize       inuse        pgsp         pin     virtual
s    4 KB         -      564972        2499       50490       73611
m   64 KB         -       12265           0        6305       12265


michael@x071:[/tmp]svmon -G
               size       inuse        free         pin     virtual   mmode
memory       786432      761219       25213      151370      269852     Ded
pg space     262144        2499

               work        pers        clnt       other
pin          120912           0        3130       27328
in use       269852           0      491367

PageSize   PoolSize       inuse        pgsp         pin     virtual
s    4 KB         -      564979        2499       50490       73612
m   64 KB         -       12265           0        6305       12265


As these are all frame counts, and especially since 1 64 KB page is equal to 16 4KB pages the sections are difficult to compare. Instead compare these two commands

Human readable svmon

michael@x071:[/tmp]svmon -O unit=auto
Unit: auto
--------------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available   mmode
memory        3.00G       2.92G       78.3M     591.85M       1.05G      1.79G     Ded
pg space      1.00G       10.1M

               work        pers        clnt       other
pin         472.88M          0K       12.2M     106.75M
in use        1.05G          0K       1.87G


michael@x071:[/tmp]svmon -O unit=MB
Unit: MB
--------------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available   mmode
memory      3072.00     2948.28      123.72      591.29     1030.05    1876.17     Ded
pg space    1024.00        9.85

               work        pers        clnt       other
pin          472.31           0        12.2      106.75
in use      1030.05           0     1918.23


In the first command, using -O unit=auto not only do the base sizes change - I must pay attention to the letter behind the value. In the second command there are no trailing letters to specify unit size - all sizes are uniform.

Next installement

This is just to let you see whether you think this could be useful to you. In the next installment I will show how to get similiar outputs using an argument like -P. Right now I shall just highlight that there is a big difference in the number of lines returned

michael@x071:[/tmp]svmon -P -t 3 | wc -l
147


michael@x071:[/tmp]svmon -P -t 3 -O unit=MB | wc -l
7


michael@x071:[/tmp]svmon -P -t 3 -O unit=MB        
Unit: MB

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
 7798926 httpd           769.77     52.8        0   120.56
 9502902 httpd           767.39     52.8        0   118.19
 5832878 httpd           761.58     52.8        0   112.38


 
< Prev   Next >
Login