notes tuning AIX

Creation: 5 decembre 2006
Mise à jour: 16 septembre 2009
Version: 1.1
Author: Jean-Louis Bicquelet-Salaün
Location: http://jlbicquelet.free.fr
Copyright: (c) 2006 Jean-Louis BICQUELET-SALAÜN

Pour plus d'information au sujet de cette faq, contactez Jean-Louis BICQUELET


FAQ Revised: Wednesday 16 September 2009 09:46:17


Table of Contents

1. tuning
2. paging space
3. tools
4. généralité

1. tuning

1.1. comment connaitre la répartition mémoire / paging space sous AIX?
svmon -G
               size      inuse       free        pin    virtual
memory      2228224    2200950      27274     359516    2647182
pg space    2129920    1598176

               work       pers       clnt      lpage
pin          359516          0          0          0
in use      1749322     440498      11130          0

memoryreal memory, blocs de 4KB
in usereal memory utilisées, blocs de 4KB
pinpages attachées, blocs de 4KB
pg spacestatistique pour le pging space, en blocs de 4KB
in useindique les pages allouées



1.2. comment connaitre l'occupation mémoire d'un process?
svmon -P 2236574

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd LPage
 2236574 ppdsweb          22133     5585     6871    33546      N     Y     N

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
   a08aa         d work loader segment               -  12549     0   61 18935
       0         0 work kernel segment               -   7316  5578 1382  8606
  1e3a5e         1 pers code,large file              -   1713     0    -     -
                        /dev/lapplwh0106:131490
   da90d         2 work process private              -    305     3 5149  5461
  152515         - pers large file                   -    117     0    -     -
                        /dev/lapplwh0106:100410
   ed02e         f work shared library data          -     94     0  275   530
   9d049         - work                              -     11     4    4    14
  1e3d3e         - pers large file                   -      8     0    -     -
                        /dev/lapplwh0106:131496
  116411         - pers large file                   -      8     0    -     -
                        /dev/lapplwh0106:34805
   c258c         - pers large file                   -      6     0    -     -
                        /dev/lapplwh0106:131345
   93a89         - pers large file                   -      4     0    -     -
                        /dev/lapplwh0106:131389
  153a75         - pers large file                   -      2     0    -     -
                        /dev/lapplwh0106:131491
  192519         - clnt /dev/lctmcpr0102:21624       -      0     0    -     -
   82548         - pers /dev/hd3:27                  -      0     0    -     -
   49364         - pers large file                   -      0     0    -     -
                        /dev/lprptwh0107:32831

inusenombre total de pages utilisées par le programme, blocs de 4KB
pinpages attachées, blocs de 4KB
VsidID su segment virtuel
EsidID effectif du segment



1.3. comment afficher les statistiques mémoire des 10 plus gros process?
  svmon -P -t 10


1.4. comment afficher les statistiques mémoire pour une classe de processus?

  svmon -C ppdsweb

===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
ppdsweb                             167366     5760   312888   420452

...............................................................................
SYSTEM segments                      Inuse      Pin     Pgsp  Virtual
                                      7610     5682     1466     8971

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               -   7316  5578 1382  8606
  1481f4         - work                              -     14     4    0    14
  1e84de         - work                              -     14     4    0    14
   65307         - work                              -     14     4    0    14
   f7f6f         - work                              -     13     4    1    14
   5cfc5         - work                              -     13     4    3    14
  1c48fd         - work                              -     12     4    2    14
  10a570         - work                              -     12     4    2    14
     ...           ....
   6d0a6         - work                              -     10     4    5    15
   3d0a3         - work                              -     10     4    7    14
   8cf48         - work                              -     10     4    4    14
  18d2f8         - work                              -     10     4    4    14
  17d177         - work                              -     10     4    6    14

...............................................................................
EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                    147061       78   311361   392546

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
   4cf84         2 work process private              -  26894     3 30494 35792
  1fa6ff         2 work process private              -  17233     3 32899 39759
    81e0         2 work process private              -   7801     3 4098  9355
  1884d8         2 work process private              -   7501     3    0  7501
  178157         2 work process private              -   6709     3 2936  9654
   9d189         2 work process private              -   6640     3 36769 39936
   18021         2 work process private              -   6183     3 3832 10018
   54aa4         2 work process private              -   4439     3 1616  5237
   952a8         - pers large file                   -   3693     0    -     -
                        /dev/lsipfwh0107:262169
    d300         2 work process private              -   3355     3 7665 10583
   2b662         2 work process private              -   3280     3 4131  5227
   2d0e2         2 work process private              -   3262     3 32425 35164
  1e3a5e         1 pers code,large file              -   1713     0    -     -
                        /dev/lapplwh0106:131490
  16a136         - pers large file                   -   1498     0    -     -
                        /dev/lcogiwh0106:16695
  1b823b         2 work process private              -   1475     3 2101  3586
   ace6a         2 work process private              -   1270     3 4080  5048
   a81aa         - pers large file                   -   1246     0    -     -
                        /dev/lsipfwh0107:262214
   ca86c         2 work process private              -    615     3 7118  7742
  1952d8         f work shared library data          -    535     0    0   535
  13cf53         f work shared library data          -    285     0  287   535
   ad0aa         f work shared library data          -    274     0  285   535
   781a7         f work shared library data          -    269     0  157   497
   1d181         2 work process private              -    253     3 6096  6360
  1f7d1f         - pers large file                   -    239     0    -     -
                        /dev/lprptwh0107:32832
   e3c8e         - pers large file                   -    234     0    -     -
                        /dev/lsipfwh0107:262179
   9d149         f work shared library data          -    232     0  286   535
  148014         f work shared library data          -    229     0  179   497
  18d078         f work shared library data          -    213     0  300   535
   33ca3         - pers large file                   -    203     0    -     -
                        /dev/lsipfwh0107:114690
    d240         f work shared library data          -    196     0  329   536
  197319         - pers large file                   -    144     0    -     -
                        /dev/lapplwh0106:34834
  18d178         f work shared library data          -     58     0  297   535
   1d2e1         f work shared library data          -     46     0  321   535
  193c99         - pers large file                   -     38     0    -     -
                        /dev/lsipfwh0107:262174
  103a70         - pers large file                   -     36     0    -     -
   b40cb         - pers large file                   -      5     0    -     -
                        /dev/lapplwh0106:34809
  153a75         - pers large file                   -      2     0    -     -
                        /dev/lapplwh0106:131491
  1f7d9f         - pers large file                   -      1     0    -     -
                        /dev/lprptwh0107:32834
   27d02         - pers large file                   -      0     0    -     -
                        /dev/lprptwh0107:32826
   d816d         - pers large file                   -      0     0    -     -
                        /dev/lsipfwh0107:262159
   695e6         - pers large file                   -      0     0    -     -
                        /dev/lprptwh0107:32827
   991e9         - pers large file                   -      0     0    -     -
                        /dev/lprptwh0107:32833
   69ec6         - pers /dev/hd4:4164                -      0     0    -     -
   194e1         - pers large file                   -      0     0    -     -
                        /dev/lsipfwh0107:262171
  1acf3a         - pers large file                   -      0     0    -     -
                        /dev/lsipfwh0107:262168
  1e7f5e         - pers large file                   -      0     0    -     -
                        /dev/lsipfwh0107:262165

...............................................................................
SHARED segments                      Inuse      Pin     Pgsp  Virtual
                                     12695        0       61    18935

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
   a08aa         d work loader segment               -  12553     0   61 18935
  152515         - pers large file                   -    124     0    -     -
                        /dev/lapplwh0106:100410
  116411         - pers large file                   -      8     0    -     -
                        /dev/lapplwh0106:34805
   c258c         - pers large file                   -      6     0    -     -
                        /dev/lapplwh0106:131345
   93a89         - pers large file                   -      4     0    -     -
                        /dev/lapplwh0106:131389
   82548         - pers /dev/hd3:27                  -      0     0    -     -
  192519         - clnt /dev/lctmcpr0102:21624       -      0     0    -     -

Pour retrouver les fichiers associés:

#df /dev/lprptwh0107
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/lprptwh0107   24379392  17759272   28%       94     1% /apps/data/COGNOS/PROD/prismeat
#cd /apps/data/COGNOS/PROD/prismeat
#find . -name "*" -inum 32831  ->
./ppes/cubes_publies/PTRCDPML.mdc


1.5. comment afficher les statistiques mémoire pour un utilisateur donné?
svmon -U wbic -w

===============================================================================
User                                 Inuse      Pin     Pgsp  Virtual  LPageCap
wbic                                 20151     5584     1443    27823         -

...............................................................................
SYSTEM segments                      Inuse      Pin     Pgsp  Virtual
                                      7316     5578     1382     8606

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               -   7316  5578 1382  8606

...............................................................................
EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                       282        6        0      282

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
   b53aa         2 work process private              -    124     3    0   124
  185379         2 work process private              -     81     3    0    81
  1a53bb         f work shared library data          -     50     0    0    50
   f494e         f work shared library data          -     27     0    0    27

...............................................................................
SHARED segments                      Inuse      Pin     Pgsp  Virtual
                                     12553        0       61    18935

    Vsid      Esid Type Description              LPage  Inuse   Pin Pgsp Virtual
   a08aa         d work loader segment               -  12553     0   61 18935




2. paging space

2.1. comment fixer le seuil des paging spaces?
#vmo -a | grep nps
              npskill = 16640
              npswarn = 66560

npswarn et npskill sont utilisés par VMM pour avertir les process et éventuellement les tuer.

Par défaut:

nkill=MAX(64,(nombre total de pages)/128)
npswarm=(512,4*npskill)



3. tools

3.1. comment lire topas?
Topas Monitor for host:    hercule              EVENTS/QUEUES    FILE/TTY
Wed Nov 15 07:43:25 2006   Interval:  2         Cswitch     894  Readch    24591
                                                Syscall    1597  Writech  192.0K
Kernel    0.5   |#                           |  Reads       116  Rawin         0
User      0.0   |                            |  Writes      121  Ttyout      643
Wait      2.7   |#                           |  Forks         0  Igets         0
Idle     96.8   |############################|  Execs         0  Namei        28
                                                Runqueue    0.0  Dirblk        0
Network  KBPS   I-Pack  O-Pack   KB-In  KB-Out  Waitqueue   0.0
en0      19.2     98.3    97.8     9.6     9.6
lo0       2.1      2.0     2.0     1.1     1.1  PAGING           MEMORY
                                                Faults        0  Real,MB   12799
Disk    Busy%     KBPS     TPS KB-Read KB-Writ  Steals        0  % Comp     63.4
kpower28  1.4     12.0     1.5     0.0    12.0  PgspIn        0  % Noncomp  37.4
hdisk92   1.4     12.0     1.5     0.0    12.0  PgspOut       0  % Client    9.2
hdisk48   0.9      4.0     0.5     0.0     4.0  PageIn        0
hdisk18   0.9      4.0     0.5     0.0     4.0  PageOut      46  PAGING SPACE
                                                Sios         30  Size,MB    8320
Name            PID  CPU%  PgSp Owner                            % Used     80.3
topas       1495174   0.2   3.5 root            NFS (calls/sec)  % Free     19.6
aioserve     909502   0.1   0.1 root            ServerV2       0
aioserve    1986766   0.1   0.1 root            ClientV2       0   Press:
aioserve     917696   0.1   0.1 root            ServerV3       0   "h" for help
topas       3014664   0.1   6.5 root            ClientV3       0   "q" to quit

  • %comp = programmes
  • %NonComp = fichiers
  • %client = NFS ...

Je vais essayer de décrire ces paramêtres. Vous ne m'en voudrez pas. La traduction en Français est difficille.

Comp%Le pourcentage de la mémoire réelle actuellement affectée à la page de calcul de frames (computational page frames, je ne vois pas comment traduire autrement). Les computational page frames sont généralement soutenus par l'espace de pagination.
Noncomp% Le pourcentage de la mémoire réelle actuellement affectés à des pages qui ne font pas de calcul. Ces pages sont généralement sont aidées par des fichiers espace, soit dans des fichiers de données, fichiers exécutables, ou des fichiers de bibliothèques partagées.
Client% Le pourcentage de la mémoire réelle actuellement affectés à la cache distante (par montage de fichiers).
EsidID effectif du segment

%client est inclus dans %NonComp.

One-character commands:
  a - Show all the variable subsections being monitored. Pressing the
      the 'a' key always returns topas to the main inital display.
  c - Pressing the 'c' key repeatedly toggles the CPU subsection
      between the cumulative report, off, and a list of busiest CPUs.
  d - Pressing the 'd' key repeatedly toggles the disk subsection between
      busiest disks list, off, and total disk activity for the system.
  f - Moving the cursor over a WLM class and pressing 'f' shows the list of
      top processes in the class on the bottom of the screen(WLM Display Only)
  h - Toggles between help screen and main display
  n - Pressing the 'n' key repeatedly toggles the network interfaces subsection
      between busiest interfaces list, off, and total network activity.
  p - Pressing the 'p' key toggles the hot processes subsection on and off.
  P - Toggle to the Full Screen Process Display
  q - Quit the program
  r - Refresh the screen
  w - Pressing the 'w' key toggles the WorkLoad Management(WLM)
      classes subsection on and off.
  W - Toggle to the Full Screen WLM Class Display

The WLM & Process displays, the network,disk,cpu,and wlm sections may be sorted
using the ARROW keys and/or TAB. A highlighted column header shows sorted-by
      Use one of the one-character commands to return to monitoring.



4. généralité

4.1. Qu'est que la VMM (virtual memory method)?
La virtual memory est une méthode par laquelle la mémoire réelle apparait plus grande que sa vraie taille. Chaque segment est divisé en bloc de 4Ko.


Copyright (c) 2006 Jean-Louis BICQUELET

Cette liste de question a été générée par makefaq.