uprecords reports >100% uptime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uptimed (Debian) |
Fix Released
|
Unknown
|
|||
uptimed (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: uptimed
On one of my servers, I get the following uprecords output:
# Uptime | System Boot up
-------
1 26 days, 20:32:54 | Linux 2.6.31-14-server Fri Nov 13 04:51:43 2009
2 20 days, 07:49:13 | Linux 2.6.31-14-server Fri Oct 23 22:00:10 2009
3 6 days, 01:06:15 | Linux 2.6.31-16-server Thu Dec 10 01:20:55 2009
-> 4 2 days, 21:07:21 | Linux 2.6.31-16-server Wed Dec 16 02:26:44 2009
-------
1up in 3 days, 03:58:55 | at Tue Dec 22 03:32:58 2009
no1 in 23 days, 23:25:34 | at Mon Jan 11 22:59:37 2010
up 56 days, 02:35:43 | since Fri Oct 23 22:00:10 2009
down 0 days, 00:-01:-48 | since Fri Oct 23 22:00:10 2009
%up 100.002 | since Fri Oct 23 22:00:10 2009
The last two lines are the problem. I'm not sure why, but uptimed thinks it has been down for a negative amount of time, and reports an uptime percentage over 100%. Clearly that is wrong. Unfortunately I have no idea why. I will happily provide whatever other information may be helpful.
'lsb_release -rd' outputs this:
Description: Ubuntu 9.10
Release: 9.10
'apt-cache policy uptimed' outputs this:
uptimed:
Installed: 1:0.3.16-3
Candidate: 1:0.3.16-3
Version table:
*** 1:0.3.16-3 0
500 http://
100 /var/lib/
Changed in uptimed (Debian): | |
status: | Unknown → Confirmed |
Changed in uptimed (Debian): | |
status: | Confirmed → Fix Released |
whats going on here is a difference between the monotonic time reported by /proc/uptime and the hwclock which does a few of the other numbers (not sure specifics) . I think this all just means your monotonic (cpu-based) clock is running alittle fast compared to the RTC (battery-powered clock). What you are experiencing is minor compared to debbug: ? which is that if ntpdate sets the clock back, you end up with duplicated entries in uprecords and uptime can go WAY up due to these double records.