Operating System - HP-UX
1752579 Members
3971 Online
108788 Solutions
New Discussion юеВ

Measuring per-process cpu-utilization

 
Ragnar Rova
New Member

Measuring per-process cpu-utilization

Hi. I would like to measure the time spent
executing in user and system mode for a single process with millisecond granularity on on HP-UX 11i v1 PA-RISC.

I have been using the pstat interface but pst_utime and pst_stime only measure seconds?

How does the pst_cpticks and pst_cptickstotal
fields work?

How do I use the pstcycles fields and how do I handle counter overflows?

I have been looking at the HP prospect tool but I can only get it to summarize metrics?

End result is that I want a graph
with wall clock time on X axis and cpu time on Y axis for a single PID
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Measuring per-process cpu-utilization

Shalom,

I'm not even sure measureware/glance keep statistics in milliseconds.

If there is not data like this available, I don't see how you can achieve the granularity you desire.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: Measuring per-process cpu-utilization

Maybe with Perfview?

http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213040593740+28353475&threadId=47795

https://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213041063155+28353475&threadId=960366

https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-15-28^1792_4000_100__

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.