Description of problem: top shows wrong values for the SWAP field of runnings processes.
Version-Release number of selected component (if applicable): procps-3.2.7-27
How reproducible: always.
Steps to Reproduce: run top, press 'f', press 'p' (show SWAP column).
Actual results: senseless SWAP values for running processes.
Expected results: real SWAP values or disable SWAP column altogether as it makes no sense.
Additional info: consult with http://bugzilla.kernel.org/show_bug.cgi?id=14532 for more details.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
This is definitely `top` bug: http://bugzilla.kernel.org/show_bug.cgi?id=14532#c5
I have notified procps maintainer however I'm not sure if he fixes this bug in the nearest future, as procps development has stalled ostensibly.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '12'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 12's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 12 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Created attachment 498494 [details]
top swap values with no swap
With SWAP disabled, it looks even funnier.
There is one test patch for procps support swap field, created by Mr. Kosaki.
Can you test following patch and evaluate with kernel 2.6.34 or better?
Similar patch for readproc was added by upstream a year ago .
Fedora 15 has already this version of readproc but the top interface wasn't updated. I have done some little tests and output seems to be ok, so I am going to release update for F15 next week.
Thanks for the investigation.
I will check the procps update on F15.
In the mean time, I would expect to see this modification on RHEL6.2,
because this feature is very useful for enterprise users.
if you ask me to open another BZ for RHEL6, let me know.
procps-3.2.8-21.20110302git.fc15 has been submitted as an update for Fedora 15.
Download the beta RPM from koji and tested on my F15(64bit) box
(limited the memory size to 1GB and run multiple guest OSes.)
The beta RPM works as expected. Thank you.
top - 00:56:33 up 12 min, 1 user, load average: 0.10, 0.55, 0.59
Tasks: 118 total, 1 running, 117 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.1%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1023156k total, 561556k used, 461600k free, 2348k buffers
Swap: 10289620k total, 449528k used, 9840092k free, 31716k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
1244 qemu 20 0 1495m 119m 1096 S 0.3 12.0 0:12.46 259m qemu-kvm
1565 qemu 20 0 1345m 249m 1008 S 0.0 24.9 0:25.56 122m qemu-kvm
1 root 20 0 55776 1432 948 S 0.0 0.1 0:01.79 20m systemd
[root@bert ~]# grep VmSwap /proc/1244/status
VmSwap: 259736 kB
[root@bert ~]# grep VmSwap /proc/1565/status
VmSwap: 123380 kB
[root@bert ~]# grep VmSwap /proc/1/status
VmSwap: 20888 kB
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing procps-3.2.8-21.20110302git.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
procps-3.2.8-21.20110302git.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.