- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Process and CPU information
Operating System - HP-UX
1753789
Members
7698
Online
108799
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-02-2010 12:36 AM
01-02-2010 12:36 AM
Re: Process and CPU information
Hi Dennis,
you are correct, top gives me the data I am looking for. I almost forgot the handy tools that we have in unix. I have been using the following command to get top 20 CPU consuming processes.
UNIX95= ps -e -o "user,pcpu,cpu,vsz,pid,ppid,args" | sort -rnk2 | head -20
If I look at TIME in top man page it says teh following.
TIME Number of system and CPU seconds the process has consumed.
The time column keeps updating when the process state is in run state (makes sense). The moment it goes in to sleep state, the time cloumn doesn't update. The moment it comes in to run state, it doesn't reset the time to zero (until and unless it is new process). It just adds the time to the privious value.
How would I know, how much time the process has been in run state before it actually went in to sleep.
%CPU is used to sort the top process.
Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.
Cheers,
Ravi.
you are correct, top gives me the data I am looking for. I almost forgot the handy tools that we have in unix. I have been using the following command to get top 20 CPU consuming processes.
UNIX95= ps -e -o "user,pcpu,cpu,vsz,pid,ppid,args" | sort -rnk2 | head -20
If I look at TIME in top man page it says teh following.
TIME Number of system and CPU seconds the process has consumed.
The time column keeps updating when the process state is in run state (makes sense). The moment it goes in to sleep state, the time cloumn doesn't update. The moment it comes in to run state, it doesn't reset the time to zero (until and unless it is new process). It just adds the time to the privious value.
How would I know, how much time the process has been in run state before it actually went in to sleep.
%CPU is used to sort the top process.
Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.
Cheers,
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2010 07:24 AM
01-02-2010 07:24 AM
Re: Process and CPU information
Hi Ravi:
> How would I know, how much time the process has been in run state before it actually went in to sleep.
I don't think you can determine that very easily (at least not with 'top'). A far better tool for "drilling down" is 'glance'. In fact, since 'glance' is architected to understand the HP-UX kernel, it is probably the best tool for performance analysis on these systems.
> Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.
The "raw" value would be a value for that sampling interval only. A "weighted" value would take into account previous values to arrive at a "smoother" average for comparative purposes.
If you Google for "weighted average" you will find (among others):
http://en.wikipedia.org/wiki/Weighted_mean
At the least, this will give you a better understanding of "weighted".
Regards!
...JRF...
> How would I know, how much time the process has been in run state before it actually went in to sleep.
I don't think you can determine that very easily (at least not with 'top'). A far better tool for "drilling down" is 'glance'. In fact, since 'glance' is architected to understand the HP-UX kernel, it is probably the best tool for performance analysis on these systems.
> Also, could you please explain me the difference between %CPU and %WCPU. What is Raw and Weighted.
The "raw" value would be a value for that sampling interval only. A "weighted" value would take into account previous values to arrive at a "smoother" average for comparative purposes.
If you Google for "weighted average" you will find (among others):
http://en.wikipedia.org/wiki/Weighted_mean
At the least, this will give you a better understanding of "weighted".
Regards!
...JRF...
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP