Tuesday, April 16, 2013

AIX 5L Performance Tools Handbook; vmstat option "-I"

Spent some time today reading AIX 5L Performance Tools Handbook.
http://www.redbooks.ibm.com/redbooks/pdfs/sg246039.pdf
(warning - 8.5mb pdf, >1000 pages) 

Good stuff.  I'll be using 'vmstat -s' to distinguish between pagein/pageout activity to paging space, and overall AIX VMM pagein/pageout activity.  Basically the same as distinguishing between hard and soft page faults in the Windows world.

But the other tidbit I picked up was about the "-I" option for vmstat.  Cool!  Shows file pageins/pageouts!  So using "vmstat -It" I can profile the file pageins/pageouts over time (traffic), while "vmstat -v" will show numcli, numperm, etc (footprint).  And I'll use my handy-dandy awk pivot to put the "vmstat -v" output into a table form, with timestamp, to make it much more friendly for trending and analysis.

No reason to keep capturing the optionless vmstat for now, since "vmstat -It" is giving me coverage of what I want.  Still gotta specify the 64k page option when 64k pages are enabled, as below, to capture stats for that page size.  But, specifying 4k pages in "vmstat -It" adds nothing pertinent and removes the CPU info.  So I'll capture "vmstat -v" (with a pivot), "vmstat -s" (with a pivot), "vmstat -It" (4k pages) and "vmstat -It -P 64k".

And some other stuff :)   

/home/sasquatch
[sql@sasquatch]  $ vmstat 5 5

System configuration: lcpu=20 mem=24576MB ent=5.00

kthr    memory              page              faults              cpu
----- ----------- ------------------------ ------------ -----------------------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa    pc    ec
 2  0 4175493 1056596   0   0   0   0    0   0 1464 77215 2189 30  2 61  6  1.65  33.0
 2  0 4173661 1058384   0   0   0   0    0   0 1654 83489 2261 32  2 59  6  1.76  35.3
 2  0 4168280 1063721   0   0   0   0    0   0 1496 87344 2112 33  3 59  5  1.82  36.3
 2  0 4168280 1063677   0   0   0   0    0   0 1435 76741 2187 30  2 61  7  1.65  33.1
 1  0 4168280 1063649   0   0   0   0    0   0 1642 83928 2258 31  2 61  6  1.68  33.7

/home/sasquatch
[sql@sasquatch] $ vmstat -It 5 5

System configuration: lcpu=20 mem=24576MB ent=5.00

  kthr     memory              page              faults              cpu             time
-------- ----------- ------------------------ ------------ ----------------------- --------
 r  b  p   avm   fre  fi  fo  pi  po  fr   sr  in   sy  cs us sy id wa    pc    ec hr mi se
 2  0  0 4171004 1061911   0   6   0   0   0    0 1303 10828 1588 24  2 71  2  1.33  26.6 07:25:03
 2  0  0 4176377 1056506   0   0   0   0   0    0 1484 29448 1942 29  4 64  4  1.64  32.8 07:25:08
 2  0  0 4176377 1056454   0 13   0   0   0    0 1414 10015 1543 25  3 70  3  1.38  27.6 07:25:13
 2  0  0 4176377 1056418   0   6   0   0   0    0 1284 9353   1546 23  2 72  2  1.29  25.9 07:25:18
 1  0  0 4175313 1057422   0 12   0   0   0    0 1421 9775   1604 25  2 71  2  1.38  27.5 07:25:23

/home/sasquatch
[sql@sasquatch] $ vmstat -P 64k -It 5 5

System configuration: mem=24576MB

pgsz            memory                           page                   time
----- -------------------------- ------------------------------------ --------
           siz      avm      fre    fi    fo    pi    po    fr     sr hr mi se
  64K   192482   195314      888     0     0     0     0     0      0 07:27:17
  64K   192482   195314      888     0     0     0     0     0      0 07:27:22
  64K   192482   195314      888     0     0     0     0     0      0 07:27:27
  64K   192482   195319      883     0     0     0     0     0      0 07:27:32
  64K   192482   195308      894     0     0     0     0     0      0 07:27:37

/home/sasquatch
[sql@sasquatch]  $ vmstat -P 4k -It 5 5

System configuration: mem=24576MB

pgsz            memory                           page                   time
----- -------------------------- ------------------------------------ --------
           siz      avm      fre    fi    fo    pi    po    fr     sr hr mi se
   4K  3211744  1057253  1034610     0    13    0     0     0      0 07:28:02
   4K  3211744  1066601  1025217     0     6     0     0     0      0 07:28:07
   4K  3211744  1067135  1024629     0    13    0     0     0      0 07:28:12
   4K  3211744  1070696  1021023     0     6     0     0     0      0 07:28:17
   4K  3211744  1070697  1020994     0     6     0     0     0      0 07:28:22

No comments:

Post a Comment