Red Hat Bugzilla – Bug 18673
Procinfo miscalculates uptime
Last modified: 2007-04-18 12:29:06 EDT
Both machines of mine that have been upgraded to RH7.0 show the wrong value
for uptime and idle time when queried via procinfo. Same kernel (which
reported correct values under 6.2) is running. This is from my NAT proxy
Bootup: Sat Sep 30 02:34:55 2000 Load average: 0.00 0.00 0.00 1/23 21453
user : 0:19:53.88 0.2% page in : 1060184 disk 1: 49267r 28443w
nice : 0:00:00.00 0.0% page out: 125512
system: 0:03:46.75 0.0% swap in : 2358 disk 3: 265554r 16347w
idle : 3d 19:49:08.00 99.8% swap out: 1239
uptime: 3d 20:12:48.62 context : 1566712
AT motherboard/case, no APM configured in the kernel, apmd installed but
not running, all power management off in the BIOS.
Forgot to mention that both cases, including the one quoted above are with
unpatched 2.2.17 kernels.
It's caused by a change in the compiler.
Looks like procinfo code has always relied on a compiler bug. ;)
Fixed in 17-9.
*** Bug 20017 has been marked as a duplicate of this bug. ***
*** Bug 20338 has been marked as a duplicate of this bug. ***