Bug 1330417
Summary: | pmap -x shows all lines twice | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Branislav Náter <bnater> | ||||||
Component: | procps-ng | Assignee: | Jan Rybar <jrybar> | ||||||
Status: | CLOSED ERRATA | QA Contact: | David Jež <djez> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.3 | CC: | bnater, isenfeld, jbastian, jcm, lmiksik, ovasik, qe-baseos-apps, yselkowi | ||||||
Target Milestone: | rc | Keywords: | Patch, Regression | ||||||
Target Release: | 7.4 | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | procps-ng-3.3.10-12.el7 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause:
With kernel-4.x a new field SwapPss was added into /proc/PID/smaps file.
Consequence:
pmap program unintentionally recognized this new SwapPss field as same as common Swap field and printed the same values for SwapPss as for Swap field.
Fix:
pmap was extended with recognition the difference between Swap and SwapPss field in /proc/PID/smaps file.
Result:
pmap now prints out only values for Swap field as expected and leaves out doubled values for SwapPss field. The lines now do not appear doubled in the program's output.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-08-01 18:02:15 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: | |||||||||
Bug Depends On: | 1374061 | ||||||||
Bug Blocks: | 1380361, 1381083, 1393867 | ||||||||
Attachments: |
|
Description
Branislav Náter
2016-04-26 08:10:33 UTC
Not reproducible on Intel. Adding yselkowi to CC - as he is the best aarch64-foo person I'm aware of. Thanks for bringing this to my attention. I just tried this on both a Mustang and a Seattle and I couldn't reproduce it either. Branislav, on what hardware and with which kernel and firmware are you seeing this? This can also be reproduced on F23 x86_64 with a 4.4 kernel. Therefore, I believe this is not actually aarch64 specific, but rather due to a change in /proc/PID/smaps sometime between 4.2 and 4.4. I will continue to investigate. Reproducible on Fedora 23 x86_64, but not on RHEL7.3 on VM. Will be investigated. devel_ack for 7.3 This appears to be related: https://bugzilla.opensuse.org/show_bug.cgi?id=962275 The patch mentioned there does two things: 1) fixes handling of new maps fields, which we need with kernel 4.4+ (Fedora and RHELSA), 2) changes the argument defaults, which we do not want. Testing a revised patch now. Created attachment 1198826 [details] Patch for rhel-7.3 This takes OpenSUSE's patch for 3.3.11, backports it to 3.3.10 and removes the changes they made to the default arguments. Please double-check that there aren't any other of their customizations that we do not want. I tested this on a seattle with the latest snapshot -- which by itself is affected -- and this fixes it. It also does not appear to break anything on x86_64 (tested on a system with 7.3 HTB). Successful scratch build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=11715265 Created attachment 1256000 [details]
Patch applied to RHEL-7.4
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, 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-2017:1898 |