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 1253851 - Top displays high memory usage in a strange way
Summary: Top displays high memory usage in a strange way
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: procps-ng
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Jan Rybar
QA Contact: David Jež
URL:
Whiteboard:
Depends On:
Blocks: 1420851 1466365
TreeView+ depends on / blocked
 
Reported: 2015-08-14 22:23 UTC by Ellert van Koperen
Modified: 2021-06-10 10:57 UTC (History)
7 users (show)

Fixed In Version: procps-ng-3.3.10-17.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 13:40:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 9263 0 None None None Never
Red Hat Product Errata RHBA-2018:0781 0 None None None 2018-04-10 13:41:02 UTC

Description Ellert van Koperen 2015-08-14 22:23:19 UTC
Description of problem:
A process that uses a considerable sum or far gets a strange line in top:
 1865 jchem-p+ 20 0 41.722g 0.018t 7444 S 63.1 13.2 1035:20 java
So that is 0.018t. Why not 18g, or something more accurate. I thought the credo was precision over readability. This is certainly not precise.


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


How reproducible:
easy

Steps to Reproduce:
1. run a process that uses a lot of ram 
2. run top
3.

Actual results:
0.0nnt

Expected results:
nn.nG

Additional info:
Also in the man page at the bottom there is stated:
8. BUGS
       To report bugs, follow the instructions at:
           http://www.debian.org/Bugs/Reporting [^]

Well that is funny, i have to go to the debian forums to report something in redhat/centos...

Comment 4 Jan Rybar 2017-02-23 14:59:49 UTC
Hello Ellert,

I have problems to reproduce this issue. These are outputs on RHEL-7.3 on x86_53 machine (first with default top output, second with scaling to human-readable form using 'e' key):

default:
  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                         
12152 root      20   0 2574956 2.451g      0 S  0.0 87.5   0:00.69 memwaster 

with 'e' key:
  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                         
12152 root      20   0 2514.6m 2.155g   0.0m S  0.0 76.9   0:00.69 memwaster

Did you use a custom config file for top (altering scale targets)? Also version of procps-ng package might help me trace this.
rpm -qv procps-ng

To the additional info you mentioned:
The upstream version of procps (and procps-ng) package is created and maintained by Craig Small (and co-authored by Jim Warner) who also maintains these packages for Debian distribution.
I believe Craig prefers this Debian forum as he checks it more frequently.

Thank you and have a nice day.

Comment 5 Jan Rybar 2017-02-27 15:33:05 UTC
I got it another round to find a reproducer. It seems like it only happens at the "Resident Memory" field and only if it exceeds 10GiB.
Will be further investigated.

Comment 6 Jan Rybar 2017-03-06 16:11:26 UTC
Got it. I found out it's another instance of "too little space in column" problem. The field for resident memory is set to be 6 characters long, which ##.###g does not fit, however 0.###t does.
Fix is on its way.

Comment 8 Jan Rybar 2017-03-07 11:31:15 UTC
Upstream NAKed the fix, because a new version containing the solution is said to be planned in future.

Comment 10 Jan Rybar 2017-03-13 13:36:06 UTC
Associated: bz#1034466

Comment 17 errata-xmlrpc 2018-04-10 13:40:54 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, 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-2018:0781


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