This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1350816 - proc.psinfo.rss is incorrect with threads enabled
proc.psinfo.rss is incorrect with threads enabled
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: pcp (Show other bugs)
24
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Nathan Scott
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-28 09:08 EDT by Marko Myllynen
Modified: 2016-09-05 22:19 EDT (History)
8 users (show)

See Also:
Fixed In Version: pcp-3.11.4-1.el5 pcp-3.11.4-1.fc24 pcp-3.11.4-1.fc23
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-05 15:48:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2016-06-28 09:08:07 EDT
Description of problem:
When using -L with pmdaproc threads are listed as expected for proc.psinfo.pid and others. However, at least for proc.psinfo.rss some values reported are impossible:

$ top -b -n 1 | grep firefox
 7855 testuser  20   0 2027664 661412  69580 S   0.0  8.4  14:42.15 firefox
$ pminfo -f proc.psinfo.rss | grep firefox        
    inst [7855 or "007855 /usr/lib64/firefox/firefox"] value 660672
    inst [7872 or "007872 /usr/lib64/firefox/firefox"] value 660672
    inst [7873 or "007873 /usr/lib64/firefox/firefox"] value 4008509440
    inst [7874 or "007874 /usr/lib64/firefox/firefox"] value 4008509440
    inst [7875 or "007875 /usr/lib64/firefox/firefox"] value 4008509440
    inst [7876 or "007876 /usr/lib64/firefox/firefox"] value 4008509440
    inst [7877 or "007877 /usr/lib64/firefox/firefox"] value 4008509440
    inst [7878 or "007878 /usr/lib64/firefox/firefox"] value 4008509440
...

First observed by lukas` on IRC.
Comment 1 Nathan Scott 2016-06-28 21:48:50 EDT
Pretty sure this is related to the command field in files like /proc/pid/[task/]stat containing whitespace - certainly several of the firefox threads on my local system show this behavior anyway, and its definitely confusing the code.

I'm pushing a fix for that into pcp git now, but it'd be good to confirm the contents of some of the thread procfs files from one of your affected systems too Marko/Lukas - thanks.
Comment 2 Marko Myllynen 2016-06-29 04:50:31 EDT
The patch fixes the issue for me. Thanks!
Comment 3 Fedora Update System 2016-08-14 18:53:19 EDT
pcp-3.11.4-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-415f0c78ed
Comment 4 Fedora Update System 2016-08-14 18:53:35 EDT
pcp-3.11.4-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b76275250f
Comment 5 Fedora Update System 2016-08-14 18:53:51 EDT
pcp-3.11.4-1.el5 has been submitted as an update to Fedora EPEL 5. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a51156083f
Comment 6 Fedora Update System 2016-08-15 21:55:13 EDT
pcp-3.11.4-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b76275250f
Comment 7 Fedora Update System 2016-08-16 01:16:14 EDT
pcp-3.11.4-1.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a51156083f
Comment 8 Fedora Update System 2016-08-16 01:56:27 EDT
pcp-3.11.4-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-415f0c78ed
Comment 9 Fedora Update System 2016-09-05 15:48:20 EDT
pcp-3.11.4-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2016-09-05 18:53:05 EDT
pcp-3.11.4-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2016-09-05 22:19:32 EDT
pcp-3.11.4-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.