Bug 74255 - patch to top.c fixing spurious idle time percentage miscalcuation
patch to top.c fixing spurious idle time percentage miscalcuation
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: procps (Show other bugs)
7.3
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-18 15:25 EDT by Robert J. Osborne
Modified: 2007-04-18 12:46 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-09-18 15:32:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
top.c diff patch (1.31 KB, patch)
2002-09-18 15:26 EDT, Robert J. Osborne
no flags Details | Diff

  None (edit)
Description Robert J. Osborne 2002-09-18 15:25:13 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020715

Description of problem:
An unsigned long is tested against being less than zero, causing gross
inaccuracies in idle percentage in top during heavy loads when the variable
"wraps" to a very high value.

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


How reproducible:
Sometimes

Steps to Reproduce:
1.Start top
2.Build several things, put a high load on slow processor system, etc.
3.Observe occasional in-excess-than 85000 % idle on top (single processor,
calcuation would be different for SMP boxen)
	

Additional info:  top.c diff file should be attached against procps-2.0.7
Comment 1 Robert J. Osborne 2002-09-18 15:26:03 EDT
Created attachment 76547 [details]
top.c diff patch
Comment 2 Alexander Larsson 2002-09-18 15:31:56 EDT
I think this bug is fixed in rawhide with the procps-2.0.7-idlebackwards patch.

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