total uptime between shutdowns

2011-02-01 Thread Tom Rosenfeld
Hi Guys, Is there a tool that will show me the total uptime (availability) of a machine between reboots? That is, if the machine was up for 24 hours and then shutdown for an hour and then up for 23 hours I want an answer of 47. I need this for charge-back of departments using cloud computer which

Re: total uptime between shutdowns

2011-02-01 Thread shimi
2011/2/1 Tom Rosenfeld > Hi Guys, > > Is there a tool that will show me the total uptime (availability) of a > machine between reboots? > That is, if the machine was up for 24 hours and then shutdown for an hour > and then up for 23 hours I want an answer of 47. > > I need this for charge-back of

Re: total uptime between shutdowns

2011-02-01 Thread Yedidyah Bar-David
On Tue, Feb 01, 2011 at 10:00:52AM +0200, Tom Rosenfeld wrote: > Hi Guys, > > Is there a tool that will show me the total uptime (availability) of a > machine between reboots? > That is, if the machine was up for 24 hours and then shutdown for an hour > and then up for 23 hours I want an answer of

Re: total uptime between shutdowns

2011-02-01 Thread Omer Zak
On Tue, 2011-02-01 at 10:00 +0200, Tom Rosenfeld wrote: > Hi Guys, > > Is there a tool that will show me the total uptime (availability) of a > machine between reboots? > That is, if the machine was up for 24 hours and then shutdown for an > hour and then up for 23 hours I want an answer of 47. >

Re: total uptime between shutdowns

2011-02-01 Thread Baruch Siach
Hi Omer, Tom, On Tue, Feb 01, 2011 at 10:18:41AM +0200, Omer Zak wrote: > 2. The 'uptime' command gives the uptime since last reboot. You may > want to add 'uptime >> /var/log/my_uptimes_log.txt' to the shutdown > script, and rotate & process, using a custom Perl script, > the /var/log/my_uptime_

Re: total uptime between shutdowns

2011-02-01 Thread Etzion Bar-Noy
Your solution will work, of course, only on a tidy shutdown. For unplanned shutdown (aka - power failure) it will not work. Ez On Tue, Feb 1, 2011 at 10:18 AM, Omer Zak wrote: > On Tue, 2011-02-01 at 10:00 +0200, Tom Rosenfeld wrote: > > Hi Guys, > > > > Is there a tool that will show me the to

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Nadav Har'El
On Tue, Feb 01, 2011, Elazar Leibovich wrote about "Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark": > Long story short, he claims there that modern computers are now highly > non-deterministic, he demonstrated 20% running time variation by the same > JVM running the same code. I have

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Elazar Leibovich
On Tue, Feb 1, 2011 at 12:09 PM, Nadav Har'El wrote: > But if he runs his deterministic application 5 times and gets 5 different > durations, each duration is composed of the deterministic run-time of > the application plus a random delay caused by other things on the system. > The *minimum* of th

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Shlomi Fish
On Tuesday 01 Feb 2011 12:09:17 Nadav Har'El wrote: > On Tue, Feb 01, 2011, Elazar Leibovich wrote about "Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark": > > Long story short, he claims there that modern computers are now highly > > non-deterministic, he demonstrated 20% running time

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Oleg Goldshmidt
2011/2/1 Elazar Leibovich > > See this paper[2] which is referred in the slides. > > [2] http://www-plan.cs.colorado.edu/diwan/asplos09.pdf This morning I took part in a meeting here at work where something related was discussed, so I am hot for the topic. Apologies all around. The paper you r

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Tzafrir Cohen
On Tue, Feb 01, 2011 at 12:49:00PM +0200, Elazar Leibovich wrote: > The program they tested[1] is strictly CPU bound. BTW, standard deviation > wouldn't work as well, but it shows (I think) that there's no such think as > "ideal minimal runtime". > > [1] > static int i = 0, j = 0, k = 0; > int m

Hamakor General Assembly on Thu, 17-Feb-2011 in Shenkar

2011-02-01 Thread Shlomi Fish
Hi all, Hamakor, the Israeli Non-profit organisation for Free Software and Open Source Code will hold a general assembly on Thursday, 17 February, 2011 in the Shenkar College in Ramat Gan. The assembly will be held at 18:30 in room 304 (in the old building of Shenkar). On the agenda: 1. Appro

Re: total uptime between shutdowns

2011-02-01 Thread Tom Rosenfeld
Thanks for all your tips! I found that the information is basically available in 'last -x'. Below is a rough script I put together to estimate total times rounded to hours: Thanks, -tom #!/bin/bash # # Compute total hours machine has been running, minus time

Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark

2011-02-01 Thread Nadav Har'El
On Tue, Feb 01, 2011, Oleg Goldshmidt wrote about "Re: New Freecell Solver gcc-4.5.0 vs. LLVM+clang Benchmark": > awareness. It's a far cry from saying that computers are "not deterministic" > though. If you want to measure A and in fact you measure something else and > that something else depends