A saída antiga dos meus registros que mostra valores médios após ctrl + c
#pidstat 1 -p 'pgrep bgpd'
Linux 3.16.7-gd1a374d-dellz9100on (rtr1) Tuesday 29 May 2018 _x86_64_ (4 CPU)
05:07:01 UTC UID PID %usr %system %guest %CPU CPU Command
05:07:07 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
05:07:08 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
05:07:09 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
05:07:10 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
05:07:11 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
05:07:12 UTC 0 2144 0.00 0.00 0.00 0.00 2 bgpd
^C
Average: 0 2144 0.09 0.00 0.00 0.09 - bgpd
Agora não está mostrando valores médios
# pidstat 1 -p 'pgrep bgpd'
Linux 3.16.7-gd1a374d-dellz9100on (rtr1) 06/13/18 _x86_64_ (4 CPU)
07:32:51 PID %usr %system %guest %CPU CPU Command
07:32:56 2144 0.00 0.00 0.00 0.00 0 bgpd
07:32:57 2144 0.00 0.00 0.00 0.00 1 bgpd
07:32:58 2144 0.00 0.00 0.00 0.00 1 bgpd
^C
#
Versão do pidstat
root@rtr1:/home/ocnos# pidstat -V
sysstat version 10.0.5
(C) Sebastien Godard (sysstat <at> orange.fr)
root@rtr1:/home/ocnos#