Bug 18673 - Procinfo miscalculates uptime
Summary: Procinfo miscalculates uptime
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: procinfo
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Aaron Brown
URL:
Whiteboard:
: 20017 20338 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-09 05:11 UTC by Jamie Manley
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-10-16 11:48:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Jamie Manley 2000-10-09 05:11:31 UTC
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
machine:

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.

Comment 1 Jamie Manley 2000-10-11 09:23:42 UTC
Forgot to mention that both cases, including the one quoted above are with
unpatched 2.2.17 kernels.

Comment 2 Bernhard Rosenkraenzer 2000-10-16 11:48:06 UTC
Verified; fixing.

Comment 3 Bernhard Rosenkraenzer 2000-10-16 12:08:06 UTC
It's caused by a change in the compiler.
Looks like procinfo code has always relied on a compiler bug. ;)
Fixed in 17-9.

Comment 4 Bernhard Rosenkraenzer 2000-10-30 10:17:18 UTC
*** Bug 20017 has been marked as a duplicate of this bug. ***

Comment 5 Ed McKenzie 2000-11-04 19:16:16 UTC
*** Bug 20338 has been marked as a duplicate of this bug. ***


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