- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pocess tracking
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:28 AM
01-14-2002 05:28 AM
Pocess tracking
I would like to track the CPU occupation from a single process, something like top output in the time.
PerfView shows only global CPU utilization versus time, not single process occupation; instead GlancePlus shows only instant CPU occupation for processes but doesn't save data!
Thus, how to get CPU occupation form a process versus time?
Thanx in advance
Roberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:47 AM
01-14-2002 05:47 AM
Re: Pocess tracking
The accurate way to measure this is to use another HP product called PerfView along with MeasureWare which logs all data to files then you can graph the results over any period of time. It has a massive amount of detail.
If you want to use top though simply do something like;
top -d
Then when its finished to;
strings /tmp/
This will show results like;
[5C41:33 0.16 0.16 midaemon
[5C41:33 0.13 0.12 midaemon
[5C41:33 0.15 0.15 midaemon
[5C41:33 0.16 0.16 midaemon
[5C41:33 0.13 0.13 midaemon
Ignore the leftovers of control characters at the start of each line, but you can see the cpu percentages for the midaemon process and you can then pipe them into a script to total if needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:53 AM
01-14-2002 05:53 AM
Re: Pocess tracking
You can use the hidden -f switch of top:
# top -d 3 -f /tmp/fred99
# grep top /tmp/fred99
q9 20922 root 178 20 352K 192K run 0:00 1.03 0.23 top
q9 20922 root 178 20 352K 324K run 0:00 0.75 0.30 top
q9 20922 root 178 20 352K 324K run 0:00 0.59 0.31 top
Obviously you can then format this to suit.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:00 AM
01-14-2002 06:00 AM
Re: Pocess tracking
Please do not hold me to this, but I am faily sure that "sar" should allow you to monitor and log the CPU usage into a text file that can then be used with something like xplot or the like.
Hope this helps.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:05 AM
01-14-2002 06:05 AM
Re: Pocess tracking
PerfView is installed, but it shows only global CPU utilization, not CPU per process.
Do you know how to get per process utilization?
Thanx
Roberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:20 AM
01-14-2002 06:20 AM
Re: Pocess tracking
If the cpu command in HP.config is the following:
#
id=cpu
command=/usr/sbin/sar -M 3 | cut -b9-80
wait=4
idle=5
startLine=5
cpu=1
#
This will result in the sar output to look like the following:
r-mag B.11.00 A 9000/869 08/15/01
cpu %usr %sys %wio %idle
0 44 12 2 42
1 87 10 0 2
2 94 2 0 3
3 100 0 0 0
system 81 6 1 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:22 AM
01-14-2002 06:22 AM
Re: Pocess tracking
Thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 08:13 AM
01-14-2002 08:13 AM