Re: uptime reset after about 45 days

Miquel van Smoorenburg
2003-10-30T23:34:22Z

In article <Pine.LNX.4.44.0310310005090.11473-100000@gaia.cela.pl>,
Maciej Zenczykowski <maze@cela.pl> wrote:
>> After about 45 days or so, my uptime was reset. My idle time is correct.
>>
>> $ cat /proc/uptime
>> 94245.37 3686026.54
>>
>> $ cat /proc/version Linux version 2.4.20-gentoo-r1
>> (root@dpb2.resnet.calvin.edu) (gcc version 3.2.2) #6 SMP Thu Apr 17
>> 14:11:34 EDT 2003
>
>Uptime is stored in jiffies which is 32bit on your arch, which results in
>an overflow after 2^32 clock ticks. TTTicks were 100 HZ till recently
>(overflow after 470 or so days) now, they're 1000 -> overflows after 45
>days. Doesn't wreck anything except for uptime display - known problem,

No, that's only on 2.6, and it has been fixed in 2.6 too.
The 2.4 32 bits kernels run with HZ=100.

Sounds like the gentoo-kernel has just upped HZ to 1000 without
fixing these problems properly. That's .. disappointing.

Mike.