- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- glance vs. sar vs. top
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
05-24-2002 11:26 AM
05-24-2002 11:26 AM
glance vs. sar vs. top
I ran the program and looked at the GlancePlus output (I printed proc_cpu_total_util from the symptoms window ). What I see is what I expect, nearly 100% utilization for 10 seconds followed by 0% for 10 seconds.
Then I ran and looked at sar. The machine has 6 CPUs, so 100% on one CPU is 16.6% global. I see what I expect, 16% or 17% cpu for 10 seconds followed by 0% and repeating 2 more times.
Then I run top. It shows CPU utilization whether the process state is run or sleep, and the percent cpu during the run state seems to slowly creep up but not get near the 100% I expect. I have seen this behavior from top before, from which I have concluded that it performs some heavy moving averaging so that process cpu always slowly ramps up and down rather than abruptly changing like glance or sar shows.
I have attached my program and the data. My conclusion is that top can't be trusted. Am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 11:36 AM
05-24-2002 11:36 AM
Re: glance vs. sar vs. top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 11:50 AM
05-24-2002 11:50 AM
Re: glance vs. sar vs. top
It's obvious that top will not give the best outputs as like Glance does, but I don't believe that it will report something incorrect. If yes, then you need to apply the patches !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:03 PM
05-24-2002 12:03 PM
Re: glance vs. sar vs. top
I have seen top and glance disagree to the extent that top say 100% cpu and glance says 0%. I didn't know what to say other than I trust glance over top.
From your comment, I am assuming that top shouldn't be that much different than glance. I'll check into patches for top --- thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 12:12 PM
05-24-2002 12:12 PM
Re: glance vs. sar vs. top
If you mentioned OS is 11.00 - then apply the patch PHCO_26020 (s700_800 11.00 top(1) cumulative patch)
If you mentioned OS is 11.11 - then apply the patch PHCO_25204 (s700_800 11.11 top(1) cumulative patch)
Read the patch descriptions, it includes solutions for lot of bugs. One of them from the document - "top(1) displays wrong values for the average cpu time spent in each state on a multiprocessor machine."
Also I would suggest you to check the Custom Patch Manager and install all available patches to the system.