OESF Portables Forum

General Forums => General Discussion => Topic started by: cvmiller on October 03, 2005, 09:30:55 pm

Title: Too Much Uptime
Post by: cvmiller on October 03, 2005, 09:30:55 pm
Hey All,

I have two Zaurus's, a SL-6000 which I use as my PDA everywhere, and my old SL-5500, which spends most of its life on a shelf, turned on, and on my wireless network (a great thing to ping when I need to test the wireless network).

So the SL-5500 has lots of uptime, since it is on 24x7. I have been monitoring the uptime, and it has been incrementing nicely. I thought it was doing pretty well after it passed 400 days of uptime.

Imagine my surprise when I checked the uptime today to see that it is only 7 days of uptime! Checking the last log, it is clear that the SL-5500 hasn't rebooted since 9 April 2004, so something was off.

Not the end of the world. I guess Sharp (or Embedix) wasn't planning on the Zaurus being "up" for so long. The little Linux box that could.

Craig...
Title: Too Much Uptime
Post by: inode0 on October 03, 2005, 09:50:42 pm
Quote
Not the end of the world. I guess Sharp (or Embedix) wasn't planning on the Zaurus being "up" for so long. The little Linux box that could.
I wouldn't blame them ... might it be the old 497 day bug?! My woody 2.4.18 kernel rolled its counter over after 497 days too.

John
Title: Too Much Uptime
Post by: Optogeek on October 04, 2005, 10:25:28 am
This is from memory so I may be wrong....

The internal uptime clock in 2.4 linux kernels is 100Hz (not MHz) so with a 32bit counter you can only measure 497 days before you get wrap around.  On new kernels the internal clock is 1000Hz and you get a wrap around after 49.7 days.
Title: Too Much Uptime
Post by: cvmiller on October 05, 2005, 09:52:43 pm
Quote
I wouldn't blame them ... might it be the old 497 day bug?! My woody 2.4.18 kernel rolled its counter over after 497 days too.

John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98063\"][{POST_SNAPBACK}][/a][/div]

OK, I guess that make sense. I have a 2.6 machine, I'll have to see if it lasts longer than 45 days (I read that the /proc/uptime counter was increased to 64 bits in 2.6).

Thanks,

Craig...
Title: Too Much Uptime
Post by: inode0 on October 05, 2005, 09:56:09 pm
Quote
OK, I guess that make sense. I have a 2.6 machine, I'll have to see if it lasts longer than 45 days (I read that the /proc/uptime counter was increased to 64 bits in 2.6).

It will last a lot longer than 45 days.

John