- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determing CPU usage
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
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
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
тАО09-27-2003 07:27 AM
тАО09-27-2003 07:27 AM
Determing CPU usage
I would like to monitor the CPU usage. What would be the best command for this? I would like to use the commands top or ps for this but I am having some problems. Firstly the value under "USER" does not seem to be in sync with the CPU usage of the processes. I tried summing up the values in the %CPU column of top and also the %CPU column of ps but in both the cases the sum was > 100% Any info about how these values are to be interpreted would be really valuable.
Thanks and regards
Sonison James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2003 02:08 PM
тАО09-27-2003 02:08 PM
Re: Determing CPU usage
Try
# UNIX95= ps -ef -o user,uid,pid,ppid,pcpu,args | sort -nbk 5
The above command should list all the processes sorted based on their CPU usage.
Thanks,
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2003 05:27 PM
тАО09-27-2003 05:27 PM
Re: Determing CPU usage
#sar -u 5 100 { for CPU load by user if u have multiple processors u can use M as option)
#sar -q 5 100 ( for run queue load)
# sar -v 5 100 ( for usage of Kernel for each value)
#sar -d 5 100 ( for disk i/o)
# sar -c 5 100
we have also 'b', 'w', options for getting buffer and swap values.
and we also have Glance plus, PRM e.t.c available for CPU usage.
Any way top is always on top for me.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2003 06:21 PM
тАО09-27-2003 06:21 PM
Re: Determing CPU usage
Your best bet is Glance Pluse! Try it for free, it's easier to understand and monitor!
Hope this help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2003 07:20 PM
тАО09-27-2003 07:20 PM
Re: Determing CPU usage
As Xman said GlancePlus Pak (which includes MeasureWare) This has now been re-branded as OpenView Performance Agent. It dies cost but I dont think it is enourmously expensive.
top is good for a quick idea. Your top problems may be fixed in patch PHCO_26020. But Glance or MeasureWare are the dogs b******s, as you can either look at the current state OR the wahat it was like last night. I generally find you get called about a problem that has passed, so MeasureWare is invaluabl in those cases.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2003 07:23 AM
тАО09-28-2003 07:23 AM
Re: Determing CPU usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2003 03:09 PM
тАО09-28-2003 03:09 PM
Re: Determing CPU usage
Refer to manpages for more information.
top(1) manpage
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-60103/B2355-60103_top.html&con=/hpux/onlinedocs/B2355-60103/00/04/422-con.html&toc=/hpux/onlinedocs/B2355-60103/00/04/422-toc.html&searchterms=command%7ctop&queryid=20030928-210530
ps(1) manpage
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-60103/B2355-60103_top.html&con=/hpux/onlinedocs/B2355-60103/00/03/337-con.html&toc=/hpux/onlinedocs/B2355-60103/00/03/337-toc.html&searchterms=ps&queryid=20030928-210710
Hope this helps.
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2003 03:44 PM
тАО09-28-2003 03:44 PM
Re: Determing CPU usage
You'll like it.
based on sar.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2003 07:44 PM
тАО09-28-2003 07:44 PM