Pi Uptime


33 posts   Page 1 of 2   1, 2
by payne747 » Wed Jun 13, 2012 2:26 pm
Hi all, I've been wanting to run my Pi for quite some time during tests (perhaps leaving on over night, etc). Has anyone got any impressive uptime so far? I'm worried about the temps after a long period of usage, and leaving it unattended, but apart from the main SoC, it seems fine :P

Any input would be welcome :)

Thanks,
John P
John Payne
http://www.the-serpent.co.uk
Posts: 9
Joined: Fri Jun 01, 2012 1:38 pm
Location: Hampshire, UK
by RaTTuS » Wed Jun 13, 2012 2:32 pm
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4699
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by stevepdp » Wed Jun 13, 2012 2:43 pm
We've seen some pretty impressive figures on Twitter too recently, 28 days being a good record so far.

With regards to cooling, some have talked about attaching heatsinks to the SoC, but as far as I'm aware additional cooling really isn't nessesary, even in an overclocking situation.
I'm not a part of the Raspberry Pi Foundation, I'm just an enthusiastic fan.
User avatar
Forum Moderator
Forum Moderator
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am
Location: Norfolk, UK
by SN » Thu Jun 14, 2012 11:04 am
http://www.bryxx.com has now been up 10 days, 53 minutes (and in that time served about 3,500 page impressions to users in 33 different countries)
Image
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?
User avatar
Posts: 1009
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
by lokir » Tue Jun 19, 2012 6:47 am
3+ days and it always hangs :(
Posts: 3
Joined: Thu Jun 14, 2012 2:45 pm
by RaTTuS » Tue Jun 19, 2012 8:16 am
One of mine will hang / kernel panic / switch of display at random intervals - a few hours or a few days the other is rock solid.
I'm investigating .....
otherwise the 1st one would of been up for 2 weeks as it is it's back to 2 days now - the 2nd one gets more attention as I use that for testing out configs and setups ... it's also going to be going in a case soon.
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4699
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by payne747 » Wed Jun 20, 2012 1:22 pm
Cool thanks for the replies, not really stretched mine yet but I imagine most will want to use theirs in a server like role as I plan to (impressive by the way SN!), so will need to think about the best way to keep it cool :)
John Payne
http://www.the-serpent.co.uk
Posts: 9
Joined: Fri Jun 01, 2012 1:38 pm
Location: Hampshire, UK
by brunialti » Mon Jun 25, 2012 8:11 am
max 2-3 days. The main (apparent) reason for hanghing up seems ssh with xterms usage.
Posts: 17
Joined: Sat Jun 09, 2012 9:11 am
by jamesh » Mon Jun 25, 2012 8:39 am
The only limit to uptime is software stability. The chip could stay up for as long as you want without overheating.
Soon to be unemployed software engineer currently specialising in camera drivers and frameworks, but can put mind to most embedded tasks. Got a job in N.Cambridge or surroundings? I'm interested!
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11578
Joined: Sat Jul 30, 2011 7:41 pm
by wozarib » Wed Jul 25, 2012 12:44 pm
SN wrote:http://www.bryxx.com has now been up 10 days, 53 minutes (and in that time served about 3,500 page impressions to users in 33 different countries)
Image


Hey there,

How are you able to view the uptime in the fashion you're doing that? Would like to do the same thing :D
Posts: 5
Joined: Tue Feb 21, 2012 5:02 pm
by wozarib » Wed Jul 25, 2012 1:22 pm
Ah.. nevermind, i found it after a google search! that's pretty neat though. I wonder if it's possible to make something similar to the uptime module eggdrop uses, where the device can update a central server with its uptime to create a sort of leaderboard if you get my meaning. the eggdrop thing is uptime.eggheads.org for example.
Posts: 5
Joined: Tue Feb 21, 2012 5:02 pm
by pwl » Thu Jul 26, 2012 7:47 am
Wozarib_ wrote:
SN wrote:http://www.bryxx.com has now been up 10 days, 53 minutes (and in that time served about 3,500 page impressions to users in 33 different countries)
Image


Hey there,

How are you able to view the uptime in the fashion you're doing that? Would like to do the same thing :D



Can you tell where did you found the anwsers? Beacuse I have a small problem how to 'extract this data and put it on website'

I mean the uptime
Posts: 18
Joined: Wed Jul 25, 2012 1:18 pm
Location: Poland
by Holy One » Sun Jul 29, 2012 1:33 am
pwl wrote:
Wozarib_ wrote:
SN wrote:http://www.bryxx.com has now been up 10 days, 53 minutes (and in that time served about 3,500 page impressions to users in 33 different countries)
Image


Hey there,

How are you able to view the uptime in the fashion you're doing that? Would like to do the same thing :D



Can you tell where did you found the anwsers? Beacuse I have a small problem how to 'extract this data and put it on website'

I mean the uptime


you mean like this: http://81.174.146.46/ ?

its just basic php, specifically the system function. e.g.

<?php system("df -h"); ?>
<?php system("top -b -n1");?>
etc
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
by pwl » Sun Jul 29, 2012 8:15 am
Holy One wrote:you mean like this: http://81.174.146.46/ ?

its just basic php, specifically the system function. e.g.

<?php system("df -h"); ?>
<?php system("top -b -n1");?>
etc


Very interesing ;-)
Would like to see the script to generate similar page.


btw. for the ones that are looking still how to extract 'uptime' i have something like this:
Code: Select all
<?php
$data = shell_exec('uptime');
echo $data;
?>

the result that you'd get is something like this:
10:13:28 up 2 days, 12:32, 1 user, load average: 0.00, 0.01, 0.05
Posts: 18
Joined: Wed Jul 25, 2012 1:18 pm
Location: Poland
by Holy One » Sun Jul 29, 2012 1:01 pm
Code: Select all
<html>
<head>
<body bgcolor="#000000" text="808080">
</head>
<body>
<div align="left">
<pre>
<IMG SRC="rasp1.jpg" WIDTH=58 HEIGHT=69><IMG SRC="debian1.jpg" WIDTH=68 HEIGHT=68>
<IMG SRC="pi1.jpg" WIDTH=338 HEIGHT=260>

<h2>System Information:</h2>
<?php system("uname -a"); ?>

<h2>Uptime:</h2>
<?php system("uptime"); ?>


<h2>Memory Usage (MB):</h2>
<?php system("free -m"); ?>


<h2>Disk Usage:</h2>
<IMG SRC="sdcard1.jpg" WIDTH=57 HEIGHT=76>
<br>
<?php system("df -h"); ?>

<h2>CPU Information:</h2>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
<?php system("cat /proc/cpuinfo | grep \"BogoMIPS\\|BogoMips\""); ?>

<h2>CPU usage:</h2>
<?php system("top -b -n1");?>

</align>
</pre>
</div>
</div>


Save in web root as index.php

The server is running raspbian, lighttpd and php5, mysql etc.
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
by wozarib » Mon Dec 10, 2012 4:53 pm
Currently sat at:
16:51:51 up 82 days, 21:47, 1 user, load average: 0.02, 0.02, 0.05

Is there perhaps a way of running an uptime server of sorts? similar to what eggdrop has at uptime.eggheads.org have?

would be nice to see a list of raspberrypi uptimes in the same fashion.
Posts: 5
Joined: Tue Feb 21, 2012 5:02 pm
by RaTTuS » Mon Dec 10, 2012 5:01 pm
$ uprecords
Code: Select all
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1    22 days, 23:04:15 | Linux 3.2.27+             Sat Nov 17 17:55:38 2012
     2    18 days, 05:55:29 | Linux 3.1.9+              Fri Aug 10 11:23:26 2012
     3    13 days, 20:10:25 | Linux 3.2.27+             Thu Sep 20 16:53:12 2012
     4    11 days, 04:54:32 | Linux 3.2.27+             Fri Oct 19 08:39:20 2012
     5     9 days, 21:11:51 | Linux 3.2.27+             Fri Aug 31 14:48:28 2012
     6     8 days, 18:23:43 | Linux 3.2.27+             Tue Oct  9 15:12:04 2012
     7     7 days, 00:06:10 | Linux 3.2.27+             Mon Nov  5 09:42:49 2012
     8     6 days, 20:23:09 | Linux 3.1.9+              Fri Aug  3 14:59:08 2012
     9     5 days, 20:54:57 | Linux 3.2.27+             Tue Oct 30 12:47:39 2012
    10     4 days, 23:24:42 | Linux 3.1.9+              Wed Jul 18 09:02:20 2012
----------------------------+---------------------------------------------------
NewRec     4 days, 17:08:45 | since                     Wed Dec  5 23:51:06 2012
    up   138 days, 04:04:53 | since                     Tue Jul 17 11:45:03 2012
  down     8 days, 02:09:57 | since                     Tue Jul 17 11:45:03 2012
   %up               94.469 | since                     Tue Jul 17 11:45:03 2012

and another
Code: Select all
 
uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1    22 days, 06:19:55 | Linux 3.2.27+             Sun Nov 18 10:41:10 2012
     2    16 days, 18:41:02 | Linux 3.2.27+             Wed Oct 31 15:11:40 2012
     3     5 days, 18:51:47 | Linux 3.2.27+             Tue Oct 23 17:16:47 2012
     4     1 day , 02:58:01 | Linux 3.2.27+             Tue Oct 30 12:13:30 2012
     5     0 days, 19:10:29 | Linux 3.2.27+             Mon Oct 29 16:58:02 2012
     6     0 days, 16:44:47 | Linux 3.2.27+             Sat Nov 17 09:16:30 2012
     7     0 days, 04:21:20 | Linux 3.2.27+             Mon Oct 29 11:16:47 2012
     8     0 days, 00:00:33 | Linux 3.2.27+             Tue Oct 30 11:16:47 2012
----------------------------+---------------------------------------------------
NewRec     5 days, 11:38:52 | since                     Wed Dec  5 05:22:12 2012
    up    47 days, 15:07:54 | since                     Tue Oct 23 17:16:47 2012
  down     0 days, 09:36:24 | since                     Tue Oct 23 17:16:47 2012
   %up               99.167 | since                     Tue Oct 23 17:16:47 2012
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4699
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by SN » Wed Dec 19, 2012 12:02 pm
wozarib wrote:Currently sat at:
16:51:51 up 82 days, 21:47, 1 user, load average: 0.02, 0.02, 0.05

Is there perhaps a way of running an uptime server of sorts? similar to what eggdrop has at uptime.eggheads.org have?

would be nice to see a list of raspberrypi uptimes in the same fashion.


82 days trumps mine :(

http://sn.ickl.in/cgi-bin/about is showing 42 days currently...

My script is simply:
Code: Select all
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<HTML><HEAD>"
echo "<TITLE>Raspberry Pi `whichpi` hosting sn.ickl.in / bryxx.com</TITLE>"
echo "</HEAD>"
echo "<BODY>"
echo "Raspberry Pi `whichpi` hosting sn.ickl.in / bryxx.com"
echo "<p>"
uname -a
echo "<P>"
uptime
echo "</BODY></HTML>"

whichpi is a script I have on all my std images which interrogates /proc/cpuinfo to workout which of my 4 Pi's the image is running on
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?
User avatar
Posts: 1009
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
by adream » Tue Jan 15, 2013 9:55 pm
91 days here

http://93.97.163.97:81/sysinfo/index.php

after a few months of unstableness, and corrupt sd cards we seem to have reached a nice stable release in the last version of raspbian

i'd love to participate in a dedicated RPI uptime server, i can host it here on any number of pi's
the code is way beyond my meagre skills though

heres my rpi at TUGs uptime project which is similar
http://users.uptimeprj.com/adream/en/
http://93.97.163.97:81/serendipity/
Posts: 22
Joined: Fri Jul 06, 2012 4:15 pm
by albundy » Wed Jan 16, 2013 9:30 am
65 days and then I shut it down.
Posts: 25
Joined: Tue Jul 17, 2012 4:56 pm
by exartemarte » Wed Jan 16, 2013 2:41 pm
I have one providing network storage which runs 24/7 and has been in use for months - I can't even remember how many months, but I mentioned it in a post at the beginning of September so it's been in use at least that long. It's been taken down from time to time to do software updates, or add hardware or a case, or on one occasion to replace a cracked sd card holder, but except when I'm messing about with it, it just sits behind my monitor doing NAS serving 24/7.
User avatar
Posts: 308
Joined: Sat Mar 03, 2012 3:51 pm
Location: Middle England
by RaTTuS » Wed Jan 16, 2013 2:57 pm
this one has just been updated
Code: Select all
uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
     1    30 days, 05:03:22 | Linux 3.2.27+             Wed Dec 12 12:26:21 2012
     2    22 days, 23:26:51 | Linux 3.2.27+             Sat Nov 17 17:55:38 2012
     3    18 days, 05:55:29 | Linux 3.1.9+              Fri Aug 10 11:23:26 2012
     4    13 days, 20:10:25 | Linux 3.2.27+             Thu Sep 20 16:53:12 2012
     5    11 days, 04:54:32 | Linux 3.2.27+             Fri Oct 19 08:39:20 2012
     6     9 days, 21:11:51 | Linux 3.2.27+             Fri Aug 31 14:48:28 2012
     7     8 days, 18:23:43 | Linux 3.2.27+             Tue Oct  9 15:12:04 2012
     8     7 days, 00:06:10 | Linux 3.2.27+             Mon Nov  5 09:42:49 2012
     9     6 days, 20:23:09 | Linux 3.1.9+              Fri Aug  3 14:59:08 2012
    10     5 days, 20:54:57 | Linux 3.2.27+             Tue Oct 30 12:47:39 2012
----------------------------+---------------------------------------------------
->  20     1 day , 05:48:59 | Linux 3.2.27+             Tue Jan 15 09:03:57 2013
----------------------------+---------------------------------------------------
1up in     0 days, 16:32:42 | at                        Thu Jan 17 07:25:36 2013
t10 in     4 days, 15:05:59 | at                        Mon Jan 21 05:58:53 2013
no1 in    28 days, 23:14:24 | at                        Thu Feb 14 14:07:18 2013
    up   175 days, 01:40:26 | since                     Tue Jul 17 11:45:03 2012
  down     8 days, 02:27:27 | since                     Tue Jul 17 11:45:03 2012
   %up               95.577 | since                     Tue Jul 17 11:45:03 2012

this one is my experimantal one
Code: Select all
uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
->   1    59 days, 04:12:50 | Linux 3.2.27+             Sun Nov 18 10:41:10 2012
     2    16 days, 18:41:02 | Linux 3.2.27+             Wed Oct 31 15:11:40 2012
     3     5 days, 18:51:47 | Linux 3.2.27+             Tue Oct 23 17:16:47 2012
     4     1 day , 02:58:01 | Linux 3.2.27+             Tue Oct 30 12:13:30 2012
     5     0 days, 19:10:29 | Linux 3.2.27+             Mon Oct 29 16:58:02 2012
     6     0 days, 16:44:47 | Linux 3.2.27+             Sat Nov 17 09:16:30 2012
     7     0 days, 04:21:20 | Linux 3.2.27+             Mon Oct 29 11:16:47 2012
     8     0 days, 00:00:33 | Linux 3.2.27+             Tue Oct 30 11:16:47 2012
----------------------------+---------------------------------------------------
NewRec    42 days, 09:31:47 | since                     Wed Dec  5 05:22:11 2012
    up    84 days, 13:00:49 | since                     Tue Oct 23 17:16:47 2012
  down     0 days, 09:36:24 | since                     Tue Oct 23 17:16:47 2012
   %up               99.529 | since                     Tue Oct 23 17:16:47 2012

this is the one I use for monitoring stuff across the network at work, it suffered a reboot when I moved it's display ... it's in a bit of a safer place now...
Code: Select all
uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
     1    30 days, 05:03:22 | Linux 3.2.27+             Wed Dec 12 12:26:21 2012
     2    22 days, 23:26:51 | Linux 3.2.27+             Sat Nov 17 17:55:38 2012
     3    18 days, 05:55:29 | Linux 3.1.9+              Fri Aug 10 11:23:26 2012
     4    13 days, 20:10:25 | Linux 3.2.27+             Thu Sep 20 16:53:12 2012
     5    11 days, 04:54:32 | Linux 3.2.27+             Fri Oct 19 08:39:20 2012
     6     9 days, 21:11:51 | Linux 3.2.27+             Fri Aug 31 14:48:28 2012
     7     8 days, 18:23:43 | Linux 3.2.27+             Tue Oct  9 15:12:04 2012
     8     7 days, 00:06:10 | Linux 3.2.27+             Mon Nov  5 09:42:49 2012
     9     6 days, 20:23:09 | Linux 3.1.9+              Fri Aug  3 14:59:08 2012
    10     5 days, 20:54:57 | Linux 3.2.27+             Tue Oct 30 12:47:39 2012
----------------------------+---------------------------------------------------
->  20     1 day , 05:51:01 | Linux 3.2.27+             Tue Jan 15 09:03:57 2013
----------------------------+---------------------------------------------------
1up in     0 days, 16:30:40 | at                        Thu Jan 17 07:25:37 2013
t10 in     4 days, 15:03:57 | at                        Mon Jan 21 05:58:54 2013
no1 in    28 days, 23:12:22 | at                        Thu Feb 14 14:07:19 2013
    up   175 days, 01:42:28 | since                     Tue Jul 17 11:45:03 2012
  down     8 days, 02:27:27 | since                     Tue Jul 17 11:45:03 2012
   %up               95.577 | since                     Tue Jul 17 11:45:03 2012
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4699
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by adream » Mon Feb 04, 2013 8:13 pm
20:11:39 up 110 days, 23:06, 1 user, load average: 0.07, 0.31, 0.24
http://93.97.163.97:81/serendipity/

so far so good, i have a ups now but don't want to shut down to change out the power, any ideas how to hot swap ?
http://93.97.163.97:81/serendipity/
Posts: 22
Joined: Fri Jul 06, 2012 4:15 pm
by tonyhughes » Mon Feb 04, 2013 8:20 pm
Hot swap power supply on a Pi?

o.m.g.

You could do it, but I'd say to do it safely you would need some half decent electronics gear and knowledge to do it safely (to the point that if you are asking this, you don't).

Maybe bridge some temporary power directly onto the board where the micro-SD socket is soldered on, then unplug old power, and then plug in new power, then disconnect the temporary supply. ??

This doesn't take into account voltage and current requirements (limits, even), and seems like a metric bum-load of work just to maintain an uptime number...

Code: Select all
sudo shutdown -h now

Is totally my answer to a question you didn't ask.

:-)
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am
by adream » Mon Feb 04, 2013 8:32 pm
he hehe, nice answer...
i already power the board via the gpio pins so as to avoid the darned mini usb lead sticking out the side
thats my biggest gripe with the pi, that all the leads stick out in all direction, i know theres little space but perhaps they should have stuck the essential sd card ethernet and power along the same edge

any way, its the matter of what happens when you introduce some more 5v dc from another direction :-) needless to say i'll experiment with the 5v first rather than the 240v ac
http://93.97.163.97:81/serendipity/
Posts: 22
Joined: Fri Jul 06, 2012 4:15 pm