Re: [PATCH] Re: boot time, process start time, and NOW time

From: Tim Schmielau
Date: Mon Aug 30 2004 - 19:49:52 EST


On Mon, 30 Aug 2004, john stultz wrote:

> On Mon, 2004-08-30 at 16:00, Tim Schmielau wrote:
> > George, please excuse my lack of understanding. What again where the
> > precise reasons to have an ntp-corrected uptime?
>
> If I remember correctly, folks were complaining that boot time was
> drifting due to the same issue.

Yes, I remember this was discussed at the same time. However, I don't see
that boot time display actually is connected to uptime. Boot time is
available in /proc/stat as seconds sice the beginning of the epoch. It's
now derived from wall_to_monotonic, thus should be reasonable constant
(and I'm not aware of recent reports that say otherwise).

If some program thinks it has to calculate boot time from
gettimeofday() - uptime, and it drifts, so what?
It's got a better way to do that. But there are no better ways to recover
from inconsistent statistics in /proc.


Tim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/