Folks,
I need to find out from the system logs ( or elsewhere ) if the CPU utilization reached say 90% an hour ago from now.
Is there a way out.
Folks,
I need to find out from the system logs ( or elsewhere ) if the CPU utilization reached say 90% an hour ago from now.
Is there a way out.
I'm not sure about the logs, but you can run "ps -ef | cut -c42-100 | sort -nr | head" - this will give you the top 10 processes that took most CPU time, example :
ps -ef | cut -c42-100 | sort -nr | head
TIME CMD
:28:06 /usr/bin/X :0 -br -audit 0 -auth /var/gdm/:0.Xauth -
:06:31 evolution
:05:30 /usr/lib/opera/9.23-20070809.6/opera -style plastik
:01:41 yakuake -session 1036028728a304000119392406100000023
:01:20 kicker
:00:59 hald-addon-storage: polling /dev/sr0 (every 2 sec)
:00:53 /usr/sbin/gdm-binary -nodaemon
:00:51 /usr/libexec/evolution/2.12/evolution-exchange-stora
:00:49 kwin -session 1036028728a304000119269781900000024800
HTH
Thank you Sysgate for the speedy reply. It mattered.
Below ones worked for me:
():/var/adm/sa$ sar -s 04:00 -e 07:00 -i 60
():/var/adm/sa$ sar -f sa14
Not sure if below one is right:
():/var/log$ cat syslog * | grep "load average"
Cheers!