Red Hat Bugzilla – Bug 74255
patch to top.c fixing spurious idle time percentage miscalcuation
Last modified: 2007-04-18 12:46:47 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):
Steps to Reproduce:
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
Created attachment 76547 [details]
top.c diff patch
I think this bug is fixed in rawhide with the procps-2.0.7-idlebackwards patch.