Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2001 10:45:46 +0930
From:      Greg Lehey <grog@lemis.com>
To:        "Thomas M. Sommers" <tms2@mail.ptd.net>
Cc:        advocacy@FreeBSD.ORG
Subject:   Re: top uptime!
Message-ID:  <20010422104546.A51968@wantadilla.lemis.com>
In-Reply-To: <3AE0FADE.5801FF96@mail.ptd.net>; from tms2@mail.ptd.net on Fri, Apr 20, 2001 at 11:13:34PM -0400
References:  <20010421093009.M72002@wantadilla.lemis.com> <Pine.LNX.4.21.0104201716040.17317-100000@pilchuck.reedmedia.net> <20010420212338.Z41536@bsd.havk.org> <3AE0FADE.5801FF96@mail.ptd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 20 April 2001 at 23:13:34 -0400, Thomas M. Sommers wrote:
> Steve Price wrote:
>>
>> .  However the uptime counter
>> (cat /proc/uptime) is counted in seconds in a 32bit variable.  So it
>> isn't possible for a Linux box to show more than 497 days of uptime
>> because the uptime rolls over then.  FWIW.
>
> But 497 days is only about 4.3e7 seconds, whereas 32 bits can count
> about 2e9 seconds (signed).

That makes 24855 days.  Unsigned, it would be 49710 days.  Obviously
the counter isn't in seconds (it's in "jiffies").  Guess how long a
jiffy is.

I've been told that this problem has been fixed in the 2.4 kernel.
Obviously it's too early to see the results of this fix.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-advocacy" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010422104546.A51968>