public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* jiffies rollover, uptime etc.
@ 2002-02-18 21:42 Oliver Hillmann
  2002-02-18 22:10 ` Alan Cox
  2002-02-18 22:12 ` Tim Schmielau
  0 siblings, 2 replies; 28+ messages in thread
From: Oliver Hillmann @ 2002-02-18 21:42 UTC (permalink / raw)
  To: linux-kernel

Hello,

yes, I know this is defenitely no new issue (maybe its none to you
anyway), since I found posts about this dating from 1998: the
jiffies counter rolls over after approx. 497 days uptime, which
causes the uptime to roll over as well, and seems to cause some
other irretation in the system itself (my pc speaker starting
beeping constantely...)

I noticed this on a couple of servers just having had 500 days of
uptime, and so I starting looking at the kernel code and played
around with a tiny jiffie manipulating kernel module. Since jiffies
is unsigned long (being 32 bits wide on x86) and counts 1/100th
seconds, it can only hold about 497 days...

This seems to be true for both 2.2 and 2.4, at least for 2.2.16 and
2.4.17, which I tested...

The uptime thingy could IMHO be solved with some kind of rollover
counter, and I'm currently digging into that area... Stuff like a pc
speaker driver going wild bothers me a bit more...

Could anybody perhaps tell me why he/she doesn't consider this a
problem? And is there a fundamental problem with solving this in
general? (I do see a problem with defining jiffies long long on x86,
because it might break a lot of things and probably wouldnt perform
as often as jiffies is touched... And you might sense I haven't
been into kernel hacking much...)

My first post here, sorry :)

Regards,

Oliver


^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: jiffies rollover, uptime etc.
@ 2002-02-19  2:54 Chris Adams
  0 siblings, 0 replies; 28+ messages in thread
From: Chris Adams @ 2002-02-19  2:54 UTC (permalink / raw)
  To: linux-kernel

Once upon a time, Alan Cox  <alan@lxorguk.ukuu.org.uk> said:
>I would schedule maintenance for it at the point it wraps. Its not the most
>tested code path in 2.2

I've got a couple of servers running 2.2 that have long rolled over (one
206 days ago and the other 314 days ago) without any trouble.  Another
six months and the second one will roll over a second time.  We're
looking at moving them to a new location, and I'm trying to figure out
how to splice an UPS in the power cord. :-)
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2002-02-21 13:22 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-18 21:42 jiffies rollover, uptime etc Oliver Hillmann
2002-02-18 22:10 ` Alan Cox
2002-02-18 22:03   ` Oliver Hillmann
2002-02-18 22:19   ` Ben Greear
2002-02-18 22:32     ` Tim Schmielau
2002-02-18 22:43     ` Alan Cox
2002-02-18 23:26       ` bert hubert
2002-02-18 23:56         ` J Sloan
2002-02-18 23:57         ` Alan Cox
2002-02-19  0:58         ` Stephen Frost
2002-02-19  4:47           ` Paul Jakma
2002-02-19  0:17     ` Bill Davidsen
2002-02-19 20:55       ` george anzinger
2002-02-20 11:36         ` Ville Herva
2002-02-20 17:20           ` Mike Fedyk
2002-02-20 17:24             ` Rik van Riel
2002-02-20 17:32               ` Mike Fedyk
2002-02-20 17:39                 ` Rik van Riel
2002-02-20 17:44                   ` Mike Fedyk
2002-02-20 17:56                 ` Derek Gladding
2002-02-21 13:19                 ` Bill Davidsen
2002-02-20 19:08               ` David Mosberger
2002-02-20 19:53               ` Robert Love
2002-02-20 15:46         ` Bill Davidsen
2002-02-20 16:50           ` george anzinger
2002-02-18 22:12 ` Tim Schmielau
2002-02-18 23:22   ` J Sloan
  -- strict thread matches above, loose matches on Subject: below --
2002-02-19  2:54 Chris Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox