Is there a log file to view linux load history

Is there a log file to view linux load history

am 26.10.2007 14:07:21 von chwang7

I am sure whether I can find the information of the load history
information some where in a log file.
Just like what the command "top" tells.
This is because my machine often freeze due to some unknown reasons. I
just want to check if there's a coincide with the high load. Thanks in
advance!

Re: Is there a log file to view linux load history

am 26.10.2007 16:13:09 von Yogesh Sawant

On Oct 26, 5:07 pm, Robin wrote:
> I am sure whether I can find the information of the load history
> information some where in a log file.
> Just like what the command "top" tells.
> This is because my machine often freeze due to some unknown reasons. I
> just want to check if there's a coincide with the high load. Thanks in
> advance!

There are many approaches to get what you want. The simplest I can
think of is:
top -b -d 300 >> /path/to/topfile &
This command will keep adding the output of top command to the
specified file after every 300 seconds (not the very efficient
approach, of course)

Yogesh

Re: Is there a log file to view linux load history

am 30.10.2007 10:24:23 von nephros

On Oct 26, 3:13 pm, Yogesh Sawant wrote:
> On Oct 26, 5:07 pm, Robin wrote:
>
> > I am sure whether I can find the information of the load history
> > information some where in a log file.
> > Just like what the command "top" tells.
> > This is because my machine often freeze due to some unknown reasons. I
> > just want to check if there's a coincide with the high load. Thanks in
> > advance!
>
> There are many approaches to get what you want. The simplest I can
> think of is:
> top -b -d 300 >> /path/to/topfile &
> This command will keep adding the output of top command to the
> specified file after every 300 seconds (not the very efficient
> approach, of course)

alternatively:
cat /proc/loadavg
uptime <-- includes a timestamp.

Greets,
Peter G.

--
Perl combines the power of sh, the clarity of sed, and the
performance
of awk with the simplicity of C.