If I grep the output of pidstat, I can find the PID i'm looking for along with the desired statistics.
$ pidstat | tail -10 10:57:26 AM 0 16433 0.00 0.00 0.00 0.00 1 kworker/1:0H 10:57:26 AM 0 16489 0.00 0.00 0.00 0.00 1 abrt-dbus 10:57:26 AM 0 18772 0.00 0.00 0.00 0.00 1 sshd 10:57:26 AM 1061 18776 0.00 0.00 0.00 0.00 1 sshd 10:57:26 AM 1061 18778 0.00 0.00 0.00 0.00 1 bash 10:57:26 AM 0 20496 0.00 0.00 0.00 0.00 0 kworker/0:3 10:57:26 AM 0 25596 0.00 0.00 0.00 0.00 0 kworker/0:1 10:57:26 AM 1061 27997 0.00 0.00 0.00 0.00 0 pulseaudio 10:57:26 AM 0 28324 0.00 0.00 0.00 0.00 0 kworker/u4:1 10:57:26 AM 0 29928 0.00 0.00 0.00 0.00 0 kworker/0:2H
But if I use -p to specify the same PID, I get a header, but no real data for the PID.
$ pidstat -p 29928 Linux 3.10.0-327.13.1.el7.x86_64 (###-##-####) 06/14/2016 _x86_64_ (2 CPU) 10:57:52 AM UID PID %usr %system %guest %CPU CPU Command
Am I doing something wrong? Or is this an undocumented bug?
Issue appear to be happening only on my RHEL 7 servers. The sysstat package is 10.1.5, and there is no official update available from the RHEL repositories according to yum update.
[link] [comments]