Bug 140410 (IT#54817)
Summary: | 2.1SA: ps sometimes shows a wrong value for VSZ | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Steve Conklin <sconklin> |
Component: | procps | Assignee: | Karel Zak <kzak> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1 | CC: | tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-04-28 15:51:44 UTC | Type: | --- |
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: | |||
Bug Blocks: | 132992 |
Description
Steve Conklin
2004-11-22 20:11:34 UTC
procps version for 2.1 is currently procps-2.0.7-11.21AS.4 I checked code and it seems it's without bugs. If the files are in /proc it always read data or it fill zeroes to vm_xxx fields. For processes with 'Z' status (like your "[cat <defunct>]") should be kernel keep zeroes in the statm file and "VmXXX" should be missing in the status file. I think basic question is why ps_readproc() doesn't read statm and status files. It can happen only if kernel remove information about process from /proc during time when ps_readproc() read it. But this function check it by stat(). Please, can you send results of cat /proc/#/status cat /proc/#/statm for your [cat <defunct>]? I think I can add small patch that zeroize vm_xxx and other stuff if file2str() for stat and statm failed. I'm sure that we want to use vm_size from /proc/#/status in "ps". It's used long time and it's in all versions (lates too). The "top" uses vsize from /proc/#/statm only. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-024.html |