1834942 Members
2304 Online
110071 Solutions
New Discussion

Re: CPU monitoring

 
Victor_5
Trusted Contributor

CPU monitoring

Quick quesiton for PerfView, the version is c.03.10.00, if I have four CPU, how can I draw the picture for only one individual CPU?

If PerfView can not do it, any other ideas to monitor one individual CPU?

7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: CPU monitoring

Hi,

Collect sar data and use sar with -M option to get information on each CPU. Then you will need to write a small script to get utilization of each CPU. You can draw graphs using Excel.

If you want to do it regularly, you will need to do some research on mrtg or rrd. www.mrtg.org.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
harry d brown jr
Honored Contributor

Re: CPU monitoring

Victor,

A question I have is what good is a picture of one CPU when the performance of all of the CPU's as a whole is more important?

live free or die
harry
Live Free or Die
George A Bodnar
Trusted Contributor

Re: CPU monitoring

Depending on the version of Measureware you are using you should have the following metrics that you can chart against if you are at least to version 3.50:

BYCPU_CPU_SYS_MODE_UTIL
BYCPU_CPU_TOTAL_UTIL
BYCPU_CPU_USER_MODE_UTIL
BYCPU_ID
Sean OB_1
Honored Contributor

Re: CPU monitoring

You can use the bycpu metrics in perfview to get CPU specific stats.

Mladen Despic
Honored Contributor

Re: CPU monitoring

Victor,

If you want to graph BYCPU metrics in PerfView, you can either:

1. Upgrade Measureware to the latest version

or:

2. Create DSI logs from Glance. See the following document, under the section Importing Glance Metrics into MWA - "Log whatever":

http://h21007.www2.hp.com/dspp/files/unprotected/PakPerform.pdf
Mladen Despic
Honored Contributor

Re: CPU monitoring

Victor,

If it is of any use, I'm attaching the Glance Adviser syntax. You can use it as follows:

1. Save the attached file, let's call it bycpu.syntax, to your current directory

2. Run:

glance -adviser_only -syntax bycpu.syntax -j 60 2>/dev/null

You can view the output and see what you want to do with it. Maybe you would import it into a spreadsheet, or simply use it as a report in text format? If you want to import it into PerfView, then you must create DSI logging process.

HTH,

Mladen
Steven Gillard_2
Honored Contributor

Re: CPU monitoring

There are some BYCPU metrics available from the measureware performance agent:

BYCPU_CPU_SYS_MODE_UTIL
BYCPU_CPU_TOTAL_UTIL
BYCPU_CPU_USER_MODE_UTIL
BYCPU_CSWITCH_RATE
BYCPU_ID
BYCPU_INTERRUPT_RATE
BYCPU_STATE

However, they are not logged by default. To turn collection of them on, you need to add "cpu" to the "log... dev=" line in your /var/opt/perf/parm file. You can then use the extract command and perfview to view these metrics.

Regards,
Steve