Operating System - HP-UX
1829115 Members
16672 Online
109986 Solutions
New Discussion

vmstat output - very urgent please

 
SOLVED
Go to solution
rajesh73
Super Advisor

vmstat output - very urgent please

Hi

how to check run queue in vmstat out put
i run the command vmstat -n 15 2
15 second to two times

Thanks & Regds
rajesh
6 REPLIES 6
Modris Bremze
Esteemed Contributor
Solution

Re: vmstat output - very urgent please

Processes in run queue are displayed below 'r' in the Procs section of the output.

http://docs.hp.com/en/B2355-60105/vmstat.1.html
rajesh73
Super Advisor

Re: vmstat output - very urgent please

hi all

how to take cpu utilization maximum and average per day

regds
Rajesh
rajesh73
Super Advisor

Re: vmstat output - very urgent please

hi all

how to take cpu utilization maximum and average per day. like BMC patrol but i dont have BMC patrol agent

regds
Rajesh
AnthonySN
Respected Contributor

Re: vmstat output - very urgent please

best option is to use top command.
you can use glance also but it is licensed product from HP.

You can also use ps command:
#ps -eo pcpu,pid,user,args | sort -r -k1 | less

below command display comparison of CPU utilization; 2 seconds apart; 5 times, use:
# sar -u 2 5

To get multiple samples and multiple reports set an output file for the sar command. Run the sar in command as a background process using.
# nohup sar -o output.file 12 8 >/dev/null 2>&1 &
Note to display data stored in output-file pass -f option to sar command:

# sar -f output-file

below command displays per-processor statistics; 12 seconds apart; 5 times
# mpstat 12 5
muruganantham raju
Valued Contributor

Re: vmstat output - very urgent please

Hi Rajesh,
uptime command provides average CPU utilization for the past 15 minutes.

e.g.
# uptime
9:57am up 12 days, 18:40, 1 user, load average: 0.00, 0.01, 0.01

The last value (0.01) is the average cpu load for the past 15 minutes.

Do you have Performance Agent or Glance Plus installed in your system? If yes, the metric "GBL_CPU_TOTAL_UTIL_HIGH" provides the highest CPU utilization value that your system has ever reached.

HTH
Muru
Dennis Handly
Acclaimed Contributor

Re: vmstat output - very urgent please

>muru_apr: uptime command provides average CPU utilization for the past 15 minutes.

uptime is probably a poor way to measure CPU utilization. It measures run queue length.