Author Topic: Too Much Uptime  (Read 3731 times)

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Too Much Uptime
« 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...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Too Much Uptime
« Reply #1 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

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Too Much Uptime
« Reply #2 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.
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Too Much Uptime
« Reply #3 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...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Too Much Uptime
« Reply #4 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