Heater
Posts: 13620
Joined: Tue Jul 17, 2012 3:02 pm

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 12:18 pm

DougieLawson,

Perhaps uptime can be fixed easily but the 2038 problem exists all over the kernel, user space libraries, applications...

At least according to the following articles there is a lot of work to be done still. At least for 32 bit systems:

https://lwn.net/Articles/643234/
https://sourceware.org/glibc/wiki/Y2038ProofnessDesign

See the huge list of Y2038-unsafe APIs.

How many apps have been fixed? Not long ago OpenSSL would generate invalid certificates and keys if you specified an expiry date after 2038 on a 32 bit system. Worked fine on 64 bit machines. A bug which bit me and I believe has been fixed since.

Of course those links are a year or so old now, I have no idea what the state of the art is now.

Better to just get that 64 bit Raspbian running on the Pi :)
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 36312
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 12:40 pm

Oh no, the sky is going to fall in, just like it didn't at 23:59:59 on 31/12/1999.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

2badmice
Posts: 56
Joined: Thu Nov 03, 2016 9:21 pm
Location: North West England

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 12:47 pm

I hope to not really have to turn mine off as I am completing a Plex Media server.

What's the suggestion here, to turn it off daily?

Getting mixed comments on this thread about updates etc.
Pi Noob, please be gentle

Heater
Posts: 13620
Joined: Tue Jul 17, 2012 3:02 pm

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 12:49 pm

I'm very sure the sky will not fall in.

There might be a bunch old gizzmos that fail though. IoT stuff. Things embedded in factory processes and so on. You know, that stuff nobody ever bothers to update.

The sky will not fall in for the Pi, if it is still a thing in 2038, because it will be running a 64 bit OS.

:)
Memory in C++ is a leaky abstraction .

Heater
Posts: 13620
Joined: Tue Jul 17, 2012 3:02 pm

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 12:57 pm

2badmice,

I hardly ever turn off/reboot any of my Linux machines. Certainly not servers in the "cloud" or embedded systems.

A reboot is generally not required when installing or updating software packages. Unless you want to take a new kernel into use. Then it might sometimes be a good idea for security reasons. Or if you need some new device driver.

It can happen that some update, say a new kernel, causes your machine not to boot up properly. So if you don't restart it after the update you will not notice you have a broken system for a long time. Like when you next power interruption reboots it and it does not come up again.

Whether any of this matters to you rather depends on what you are doing with your machines.
Memory in C++ is a leaky abstraction .

2badmice
Posts: 56
Joined: Thu Nov 03, 2016 9:21 pm
Location: North West England

Re: Longest Raspberry Pi uptime

Fri Nov 18, 2016 2:40 pm

Heater wrote:2badmice,

I hardly ever turn off/reboot any of my Linux machines. Certainly not servers in the "cloud" or embedded systems.

A reboot is generally not required when installing or updating software packages. Unless you want to take a new kernel into use. Then it might sometimes be a good idea for security reasons. Or if you need some new device driver.

It can happen that some update, say a new kernel, causes your machine not to boot up properly. So if you don't restart it after the update you will not notice you have a broken system for a long time. Like when you next power interruption reboots it and it does not come up again.

Whether any of this matters to you rather depends on what you are doing with your machines.

Thanks for this reply.

As I mentioned, I am nearly complete in my Plex Media server, just hooking up my hard drive tonight and then I will be set. Then it will hopefully always remain on for that purpose alone, so that the whole family can take advantage of the media.

:)
Pi Noob, please be gentle

User avatar
jbeale
Posts: 3499
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Longest Raspberry Pi uptime

Thu Apr 05, 2018 7:33 pm

Is it a new high score? 0 users as this was an automated script that sends an email.
Load near 1 as it has been running a distributed computing "BOINC" client (for a loong time).

05-APRIL-2018
11:57:01 up 1600 days, 18:47, 0 users, load average: 1.01, 1.06, 1.11

User avatar
DavidS
Posts: 4334
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: Longest Raspberry Pi uptime

Wed Apr 11, 2018 1:59 am

I can not be exact, as the method that I use to count up time wraps around every 497.1 days (ticks of the centasecond counter in RISC OS). Though so far I have one RISC OS running RPi that has been running continuously at least since December of 2012. It is hooked to a solar charged battery pack, and is still running one of the buggier releases of RISC OS (as it has not been rebooted for updates).

As for Raspbian based systems, I have yet to get one to run for more than 5 days without locking up, or running so short on memory do to leaky applications that a reboot is required.

So I would say that uptime is a factor of OS and conditions.

I do note that I do play quite a bit on the RPi B (original) that is still running RISC OS 5.19, and has been for over 5 years non-stop without ever rebooting. So that should say something in favor of RISC OS.
RPi = The best ARM based RISC OS computer around
More than 95% of posts made from RISC OS on RPi 1B/1B+ computers. Most of the rest from RISC OS on RPi 2B/3B/3B+ computers

User avatar
RaTTuS
Posts: 10489
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Longest Raspberry Pi uptime

Wed Apr 11, 2018 7:26 am

for some of mine

Code: Select all

cat /proc/cpuinfo | grep Rev ; uprecords ; uname -a
MY orginal Pi - Wheezy had to be retired after a dead SDcard after about 5 years]

Code: Select all

Revision        : 0002
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1   209 days, 15:01:12 | Linux 4.9.41+             Wed Sep 13 17:19:50 2017
     2    11 days, 20:21:59 | Linux 4.9.41+             Fri Sep  1 11:34:26 2017
     3     0 days, 08:31:32 | Linux 4.9.41+             Wed Sep 13 08:16:52 2017
----------------------------+---------------------------------------------------
NewRec   197 days, 18:39:12 | since                     Mon Sep 25 13:41:49 2017
    up   221 days, 19:54:43 | since                     Fri Sep  1 11:34:26 2017
  down     0 days, 00:51:53 | since                     Fri Sep  1 11:34:26 2017
   %up               99.984 | since                     Fri Sep  1 11:34:26 2017
Linux PiOne 4.9.41+ #1023 Tue Aug 8 15:47:12 BST 2017 armv6l GNU/Linux
another older one - runs a camera

Code: Select all

 cat /proc/cpuinfo | grep Rev ; uprecords ; uname -a
Revision        : 000f
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1   390 days, 16:04:46 | Linux 4.1.13+             Thu Mar 16 15:16:07 2017
     2   243 days, 20:57:43 | Linux 4.1.13+             Tue Feb 23 15:02:23 2016
     3   169 days, 23:55:24 | Linux 3.18.11+            Thu Aug 13 12:08:50 2015
     4   166 days, 19:22:30 | Linux 3.12.28+            Tue Nov 11 12:41:34 2014
     5   143 days, 03:13:32 | Linux 4.1.13+             Mon Oct 24 13:00:55 2016
     6   113 days, 09:07:22 | Linux 3.6.11+             Tue Aug 27 11:41:36 2013
     7    48 days, 22:38:25 | Linux 3.18.7+             Thu May 14 15:06:14 2015
     8    46 days, 18:16:41 | Linux 3.6.11+             Thu May 30 16:04:25 2013
     9    36 days, 19:14:22 | Linux 3.6.11+             Wed Dec 18 19:16:56 2013
    10    34 days, 22:03:30 | Linux 3.12.28+            Tue Oct  7 15:37:57 2014
----------------------------+---------------------------------------------------
NewRec   146 days, 19:07:02 | since                     Wed Nov 15 12:13:49 2017
    up   1587 days, 01:55:0 | since                     Thu May 30 16:04:25 2013
  down   189 days, 14:21:24 | since                     Thu May 30 16:04:25 2013
   %up               89.329 | since                     Thu May 30 16:04:25 2013
Linux Picse 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux
and the new Pi3b+

Code: Select all

cat /proc/cpuinfo | grep Rev ; uprecords ; uname -a
Revision        : a020d3
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1    21 days, 01:03:29 | Linux 4.9.80-v7+          Wed Mar 21 06:17:41 2018
     2     0 days, 18:00:07 | Linux 4.9.80-v7+          Mon Mar 19 11:16:58 2018
     3     0 days, 11:00:08 | Linux 4.9.80-v7+          Tue Mar 20 09:24:45 2018
     4     0 days, 01:54:35 | Linux 4.9.80-v7+          Fri Mar 16 11:45:48 2018
     5     0 days, 01:04:09 | Linux 4.9.80-v7+          Fri Mar 16 14:05:47 2018
----------------------------+---------------------------------------------------
NewRec    20 days, 07:03:21 | since                     Thu Mar 22 00:17:49 2018
    up    22 days, 09:02:28 | since                     Fri Mar 16 11:45:48 2018
  down     3 days, 10:32:54 | since                     Fri Mar 16 11:45:48 2018
   %up               86.677 | since                     Fri Mar 16 11:45:48 2018
Linux RPI3bplus 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux
my long running Pi3 had some sort of accident with power and is unstable now.... I've not looked at it properly yet
other Pi's are off and stored ATM
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

npaisnel
Posts: 62
Joined: Sun Aug 05, 2018 4:23 pm

Re: Longest Raspberry Pi uptime

Sun Aug 19, 2018 5:54 am

Hi
What are you typing at the terminal to show the Uptime

Thanks

User avatar
rpdom
Posts: 15393
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Longest Raspberry Pi uptime

Sun Aug 19, 2018 5:58 am

npaisnel wrote:
Sun Aug 19, 2018 5:54 am
Hi
What are you typing at the terminal to show the Uptime

Thanks

Code: Select all

[email protected]:~ $ uptime
 05:56:48 up 38 days, 15:05,  1 user,  load average: 0.00, 0.00, 0.00
Uptime is 38 days, 15 hours, five minutes on that Pi 3B.

npaisnel
Posts: 62
Joined: Sun Aug 05, 2018 4:23 pm

Re: Longest Raspberry Pi uptime

Sun Aug 19, 2018 6:04 am

Thanks

n67
Posts: 938
Joined: Mon Oct 30, 2017 4:55 pm

Re: Longest Raspberry Pi uptime

Sun Aug 19, 2018 6:27 am

npaisnel wrote:
Sun Aug 19, 2018 6:04 am
Thanks
You can also use "uptime -p" to get a "prettier" display.

Also, "uptime -s" will show you the time the machine was booted.

Note, BTW, that Linux just keeps track of uptime (by basically constantly updating a counter), so the string displayed by "uptime -s" is "calculated". I.e., they just take the current time and subtract the uptime. In various "edge" cases, this might not be exactly the same thing as the time the system was booted.
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

npaisnel
Posts: 62
Joined: Sun Aug 05, 2018 4:23 pm

Re: Longest Raspberry Pi uptime

Sun Aug 19, 2018 7:46 am

Thanks
Yes, once I had the word ‘ uptime’. my google searches got better results. !

User avatar
svenix
Posts: 31
Joined: Sat Mar 02, 2013 10:01 am
Location: Göteborg Sweden

Re: Longest Raspberry Pi uptime

Thu Mar 07, 2019 1:50 pm

Think I might hold a record here? ;)

My Raspberry Pi Model B located in a server hall in Austria (kindly provided by EDIS) has now been running för 1619 days!
That's almost four and a half years! And it is doing some work like running a website and running scripts that compile data every night.

Code: Select all

[email protected]:~# uptime
 14:49:03 up 1619 days,  5:52,  1 user,  load average: 0.00, 0.01, 0.05

jahboater
Posts: 4766
Joined: Wed Feb 04, 2015 6:38 pm

Re: Longest Raspberry Pi uptime

Thu Mar 07, 2019 2:38 pm

Thats good!

See this thread, DavidS at the end has one running for 6 years (it might be running RISC OS, not Raspbian).

viewtopic.php?f=63&t=234760

User avatar
jbeale
Posts: 3499
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 4:26 am

Mine is in the same place and has been going for a while now. It has been working on a distributed computing project. It also has two USB memory sticks, in case I wanted to store data on it remotely. As it turned out I didn't do that much, but both those sticks have now malfunctioned and cannot be written to. However the Pi itself is still fine. It emails me a status update every day, here's one:

11:57:02 up 1944 days, 18:47, 0 users, load average: 1.10, 1.09, 1.12

ejolson
Posts: 3687
Joined: Tue Mar 18, 2014 11:47 am

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 5:41 am

jbeale wrote:
Sun Mar 17, 2019 4:26 am
Mine is in the same place and has been going for a while now. It has been working on a distributed computing project. It also has two USB memory sticks, in case I wanted to store data on it remotely. As it turned out I didn't do that much, but both those sticks have now malfunctioned and cannot be written to. However the Pi itself is still fine. It emails me a status update every day, here's one:

11:57:02 up 1944 days, 18:47, 0 users, load average: 1.10, 1.09, 1.12
I could be wrong, but I imagine many running machines that haven't been rebooted in the last 5 years wouldn't reboot either.

jahboater
Posts: 4766
Joined: Wed Feb 04, 2015 6:38 pm

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 7:52 am

The main thing about these 5-6 year up times is being an answer to questions about the Pi's longevity or Raspbian's stability.

"uptime -p" gives a nicer display by the way.

Heater
Posts: 13620
Joined: Tue Jul 17, 2012 3:02 pm

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 8:33 am

jahboater,
The main thing about these 5-6 year up times is being an answer to questions about the Pi's longevity or Raspbian's stability.
A handful of people reporting that they have had a Pi running for 5 years says absolutely nothing about the Pi's longevity or Raspian's stability. One way or the other.

It's not statistically valid. The sample size is too small. It's a self-selected sample. We won't be hearing from people who tried to run them for years but failed.

Except me... I had an original Pi with camera setup to send snapshots to a remote web server every minute. After some months it stopped working. When I took it down and powered it up again on the bench the SD card became very hot and smoke billowed out!
Memory in C++ is a leaky abstraction .

ejolson
Posts: 3687
Joined: Tue Mar 18, 2014 11:47 am

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 4:18 pm

jahboater wrote:
Sun Mar 17, 2019 7:52 am
The main thing about these 5-6 year up times is being an answer to questions about the Pi's longevity or Raspbian's stability.

"uptime -p" gives a nicer display by the way.
Uptimes tell me about memory leaks and fragmentation in the operating system software. The fact that present-day Linux is still able to run for years without collapsing says quite a bit about regression testing and how Linus has managed the extra complexity in the kernel. It may even say something positive about systemd.

Mostly though, long uptimes may indicate luck with cosmic radiation and non-ECC memory, lack of routine maintenance (involving a reboot) and use of non-melting SD cards.

User avatar
rpdom
Posts: 15393
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Longest Raspberry Pi uptime

Sun Mar 17, 2019 5:02 pm

I'm not too bothered about uptimes, as long as my Pis keep working. I've had two fail: A model A which just wouldn't start up one day (seems to be related to the SD card slot, as it does respond if I connect to it via USB with no card. It's twin is still running fine), and a Zero which just died for no apparent reason. The other 20 or so Pis are all good.

All of mine run headless (unless I'm testing something that requires a desktop). I haven't had any problems with memory leaks.

On my laptop with the Debian based Raspberry Pi Desktop for PC however, I found that lxpanel had been gobbling RAM and was using over 20% of available and causing things to swap a lot. I restarted lxpanel (no reboot required) and no there is no swapping and it is using just over 1% of memory. That laptop has been up for for just 4 weeks.

User avatar
DougieLawson
Posts: 36312
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Longest Raspberry Pi uptime

Tue Aug 06, 2019 6:12 pm

Finally got there:

Code: Select all

     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1   365 days, 00:00:01 | Linux 4.14.59+            Mon Aug  6 19:11:28 2018
     2   302 days, 21:42:32 | Linux 4.1.16+             Thu Jan 28 16:37:09 2016
     3   210 days, 22:22:33 | Linux 4.9.14+             Thu Mar 16 13:00:16 2017
     4   190 days, 09:34:08 | Linux 3.18.9W+            Tue Jun  9 01:26:11 2015
     5   112 days, 19:18:43 | Linux 4.14.33+            Fri Apr 13 20:30:20 2018
     6   103 days, 14:54:49 | Linux 4.9.56+             Sat Oct 14 10:00:17 2017
     7    58 days, 06:39:39 | Linux 4.14.15+            Fri Jan 26 01:15:27 2018
     8    38 days, 10:22:09 | Linux 4.1.16+             Mon Jan  9 23:20:48 2017
     9    35 days, 19:19:49 | Linux 4.1.16+             Sun Nov 27 14:55:13 2016
    10    27 days, 03:11:11 | Linux 4.1.16+             Fri Feb 17 09:48:49 2017
----------------------------+---------------------------------------------------
NewRec    62 days, 02:17:28 | since                     Wed Jun  5 16:54:01 2019
    up  1602 days, 21:57:59 | since                     Sat Jan  3 14:16:52 2015
  down    73 days, 05:56:38 | since                     Sat Jan  3 14:16:52 2015
   %up               95.630 | since                     Sat Jan  3 14:16:52 2015
  Host Name: ranger
  Host Serial: 000000009b930691
    IP Details: wlxd47bb07a1fa2 10.1.1.27
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

thatchunkylad198966
Posts: 122
Joined: Thu Jul 04, 2019 10:21 am
Location: UK, Birmingham

Re: Longest Raspberry Pi uptime

Wed Aug 07, 2019 5:35 pm

My Pi Zero W - 18:34:50 up 39 days, 23:12, 2 users, load average: 0.06, 0.06, 0.02.
It's running a network-wide ad-blocker with Pi-Hole and served as a ZNC for IRC.

Doing well.
One man's trash is another man's treasure! :) Pi's I have; Pi Zero, Pi Zero W, Pi 2 x2, Pi 3 x2, Pi 4 4GB x2.

Peter Ryan
Posts: 39
Joined: Sat Mar 03, 2012 12:44 am
Location: UK

Re: Longest Raspberry Pi uptime

Fri Aug 09, 2019 6:06 pm

Pi 2B was "up 354 days, 21:35" until the stupid national power outage and now I'm back to day ZERO!!

I just wanted to make it past one year of uptime... is that too much to ask? (I'm looking up and waving my fist at the sky BTW)

Still, up to date kernel. I might upgrade to Buster now, but I'll have to wait for my irritation at the world to subside. ;)

Return to “Off topic discussion”