Re: vmstat -s "boot time" Redhat Linux

From: Ethan Post <post.ethan_at_gmail.com>
Date: Fri, 13 Nov 2009 11:02:49 -0600
Message-ID: <357b48a90911130902x2266e6fdw98d6e02126915bde_at_mail.gmail.com>



Maybe this is more VMWARE weirdness. The number is static for long periods of time, and then after a few days goes up (perhaps when the image is migrated to another server??).

$ while ((1)); do
> vmstat -s | grep "boot time"
> sleep 600
> done

   1254804111 boot time
   1254804111 boot time

On Fri, Nov 13, 2009 at 10:05 AM, Matthew Zito <mzito_at_gridapp.com> wrote:

>
> That is the actual time in seconds since the epoch (unix time) that the
> machine was started. It's stored in /proc/stat, and vmstat just grabs the
> raw value and displays it with a slightly better label (it's btime in
> /proc/stat).
>
> So, in other words, take that unix time, convert it to a human-readable
> time, adn you've got when the machine was booted.
>
> Thanks,
> Matt
>
> --
> Matthew Zito
> Chief Scientist
> GridApp Systems
> P: 646-452-4090
> mzito_at_gridapp.com
> http://www.gridapp.com
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Nov 13 2009 - 11:02:49 CST

Original text of this message