Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1763579

Summary: 'pidstat -I' do not report %usr correctly with multithread program [rhel-7.9.z]
Product: Red Hat Enterprise Linux 7 Reporter: Kirby Zhou <kirbyzhou>
Component: sysstatAssignee: Lukáš Zaoral <lzaoral>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.7CC: brclark, doperry, d.perry, fsumsal, jwright, kpfleming, lzaoral, mpagan, msekleta, rskvaril
Target Milestone: rcKeywords: Reopened, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sysstat-10.1.5-20.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-13 11:19:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kirby Zhou 2019-10-21 04:37:50 UTC
Description of problem:

' pidstat -I ' do not report %usr correctly with multithread program such as pigz.

It always output %usr=100% when cpu usage is more than 100%*1cpu.

Version-Release number of selected component (if applicable):

sysstat-10.1.5-18.el7.x86_64

How reproducible:

100%

Steps to Reproduce:
1. yum install pigz
   ( need epel-7 enabled )
2. cat /dev/zero | pigz -p 4 > /dev/null &
3. pidstat -I -p $(pgrep pigz)  1

Actual results:

 ~]$ sysstat-10.1.5-18.el7.x86_64/usr/bin/pidstat -I -p $(pgrep pigz)  1
Linux 3.10.0-957.12.2.el7.x86_64 (bjzw_112_157) 	10/21/2019 	_x86_64_	(6 CPU)

12:34:40 PM   UID       PID    %usr %system  %guest    %CPU   CPU  Command
12:34:41 PM  1003     20645  100.00   19.00    0.00   73.99     5  pigz
12:34:42 PM  1003     20645  100.00   18.00    0.00   75.04     5  pigz
12:34:43 PM  1003     20645  100.00   22.00    0.00   75.80     5  pigz
12:34:44 PM  1003     20645  100.00   16.00    0.00   74.87     5  pigz
12:34:45 PM  1003     20645  100.00   19.00    0.00   75.08     5  pigz


Expected results:
 ~]$ sysstat-10.1.5-7.el7.x86_64/usr/bin/pidstat -I -p $(pgrep pigz)  1
Linux 3.10.0-957.12.2.el7.x86_64 (bjzw_112_157) 	10/21/2019 	_x86_64_	(6 CPU)

12:35:35 PM   UID       PID    %usr %system  %guest    %CPU   CPU  Command
12:35:36 PM  1003     21829  429.00   17.00    0.00   75.21     0  pigz
12:35:37 PM  1003     21829  429.00   17.00    0.00   74.96     0  pigz
12:35:38 PM  1003     21829  432.00   20.00    0.00   75.84     0  pigz
12:35:39 PM  1003     21829  424.00   19.00    0.00   74.58     0  pigz

Additional info:

sysstat-10.1.5-7.el7.x86_64 works correctly.

Comment 4 RHEL Program Management 2021-04-21 07:31:17 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 6 Michal Sekletar 2022-08-31 12:42:41 UTC
Let's reopen the BZ as there is significant interest from the customer the get this BZ fixed.

Comment 20 errata-xmlrpc 2022-12-13 11:19:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sysstat bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8948