La commande 'vmstat' permet de visualiser les performances du système en continu.

Ainsi, la commande 'vmstat 2' donnera une ligne toutes les 2 secondes indiquant la consommation mémoire, l'activité CPU ou encore celle de pagination.

Pour n'avoir que 4 échantillons, il suffit d'ajouter '4' dans la ligne de commande : 'vmstat 2 4 '

 # vmstat -s
            103435699 total address trans. faults
             30435724 page ins
             13987369 page outs
               405655 paging space page ins
               807375 paging space page outs
                    0 total reclaims
             34471297 zero filled pages faults
               756530 executable filled pages faults
             78899607 pages examined by clock
                  265 revolutions of the clock hand
             28770197 pages freed by the clock
               775139 backtracks
                 4867 free frame waits
                    0 extend XPT waits
               935220 pending I/O waits
             44416990 start I/Os
              5837606 iodones
           1062694073 cpu context switches
             24533242 device interrupts
             39513095 software interrupts
            368176787 decrementer interrupts
                 3686 mpc-sent interrupts
                 3686 mpc-receive interrupts
              1619174 phantom interrupts
                    0 traps
           8888165505 syscalls
# vmstat -v
              1310720 memory pages
              1232305 lruable pages
                18424 free pages
                    4 memory pools
               333934 pinned pages
                 80.0 maxpin percentage
                 20.0 minperm percentage
                 80.0 maxperm percentage
                 21.6 numperm percentage
               267260 file pages
                  0.0 compressed percentage
                    0 compressed pages
                 21.6 numclient percentage
                 80.0 maxclient percentage
               267255 client pages
                    0 remote pageouts scheduled
               284134 pending disk I/Os blocked with no pbuf
               297273 paging space I/Os blocked with no psbuf
                 2228 filesystem I/Os blocked with no fsbuf
                10184 client filesystem I/Os blocked with no fsbuf
                  664 external pager filesystem I/Os blocked with no fsbuf
                    0 Virtualized Partition Memory Page Faults
                 0.00 Time resolving virtualized partition memory page faults

# vmstat -i
priority level    type   count module(handler)
    0       2   hardware  3686 i_mpc_int_handler(157b520)
    0  589825   hardware     0 /usr/lib/drivers/planar_pal_chrp(3f69a90)
    1  655360   hardware     0 /usr/lib/drivers/vconsdd(41a1998)
    3   65699   hardware 2913189 /usr/lib/drivers/pci/goentdd(3fcc9b0)
    3   65700   hardware 2697928 /usr/lib/drivers/pci/goentdd(3fcc9b0)
    3  655362   hardware 1988499 /usr/lib/drivers/vioentdd(3ff2888)
    3  655366   hardware 8905274 /usr/lib/drivers/vioentdd(3ff2888)
    3  655378   hardware 6740851 /usr/lib/drivers/vscsi_initdd(4018180)
    3  655388   hardware 1288124 /usr/lib/drivers/vscsi_initdd(4018180)

 # vmstat  -I 2 10

System configuration: lcpu=8 mem=24576MB ent=0.20

  kthr     memory              page              faults              cpu
-------- ----------- ------------------------ ------------ -----------------------
 r  b  p   avm   fre  fi  fo  pi  po  fr   sr  in   sy  cs us sy id wa    pc    ec
 1  0  0 5918281 233503   0   2   0   0   0    0  27 4275 762 24 10 65  0  0.12  58.7
 1  0  0 5918281 233503   0   6   0   0   0    0  22  655 739  4  5 91  0  0.04  18.0
 1  0  0 5918281 233503   1  27   0   0   0    0 107 1278 839  4 15 81  0  0.07  33.7

 

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone