Log load average
Andy Green
andy at warmcat.com
Fri Jul 27 12:19:06 UTC 2007
Somebody in the thread at some point said:
> What's the quickest/easiest way to log system load average to a text
> file? I was using SAR, but getting load averages is a pain. I was
> hoping there'd be a quick way to do it, but googling has come up with
> bupkiss.
while [ 1 ] ; do date | tr '\n' ' ' >> /tmp/loadlog ; \
cat /proc/loadavg >> /tmp/loadlog ; sleep 30s ; done
-Andy
More information about the fedora-list
mailing list