Re: Why HZ on i386 is 100 ?

Andreas Dilger
2002-04-16T22:58:49Z

On Apr 17, 2002 08:37 +1000, Herbert Xu wrote:
> Why are we still measuring uptime using the tick variable? Ticks != time.
> Surely we should be recording the boot time somewhere (probably on a
> file system), and then comparing that with the current time?

Er, because the 'tick' is a valid count of the actual time that the
system has been running, while the "boot time" is totally meaningless.
What if the system has no RTC, or the RTC is wrong until later in the
boot sequence when it can be set by the user/ntpd? What if you pass
daylight savings time? Does your uptime increase/decrease by an hour?

Cheers, Andreas
--
Andreas Dilger