- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- percent CPU
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
10-28-2004 12:14 AM
10-28-2004 12:14 AM
How can I report %cpu from only one process during
for example 1 week ?
It's on HPUX11.11 platform .
Thx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:26 AM
10-28-2004 12:26 AM
Re: percent CPU
Is that single process going to run all week, or is the image being recreated multiple times.
Anyway, for such long runtimes I believe it will be more interesting to know how many procent of 1 cpu it used all week, then the percentage of the used cpu time.
Either way. Start with the total cpu time used divided by the total elapsed time (7 * 24 * 60 ?). by the number of cpus, if you want the results expressed in 'system' performance terms.
If you want percentage of the total cpu used instead of actual usage, re-proportion based on some overall cpu% busy count, from sar or uptime.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:27 AM
10-28-2004 12:27 AM
Re: percent CPU
application = "your_process"
file = *abc*
Assuming that the process name is abcdx. Once you do changes, recycle scopeux (mwa restart scope) and it would monitor the resources used by this process.
If you have perfview installed, it can save the historical data.
If you do not have glance, you can folloing cron entry to run at pre-defined interval and log the details to a file. you then can prepare a graph from it.
* * * * * UNIX95= ps -C "process_name" -o "pid, args, pcpu" >> /tmp/process.txt
This would monitor the process every minute and put the % cpu used in /tmp/process.txt file.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:37 AM
10-28-2004 12:37 AM
Re: percent CPU
If you want to record the cpu for a particular process and you do not have any tools, I suggest you create a script that is run in a cron to capture the cpu of the process and store the result in a file.
ps -ef|grep
You can then cron this to an interval of your choice.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:40 AM
10-28-2004 12:40 AM
Re: percent CPU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:45 AM
10-28-2004 12:45 AM
SolutionUNIX95= ps -C httpd -o pid,args=Command-Line -o pcpu
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:48 AM
10-28-2004 12:48 AM
Re: percent CPU
UNIX95= ps -p 1302 -o pid,args=Command-Line -o pcpu
Rgds..Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:59 AM
10-28-2004 12:59 AM
Re: percent CPU
Could you please where can I find more info about the command you give me ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 01:04 AM
10-28-2004 01:04 AM
Re: percent CPU
man ps
Also a quick google will reveal a lot, like:
http://www.interex.org/pubcontent/enterprise/jan00/07uxqa.html
Rgds...Geoff