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.
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.
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.
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
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