HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sar vs vmstat
Operating System - HP-UX
1833860
Members
2280
Online
110063
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
Forums
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
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
12-29-2001 08:10 PM
12-29-2001 08:10 PM
Hi all,
Once upon a time I heard that sar was not as accurate as vmstat in reporting cpu utilization because of timeslicing. I believe this is true. I've seen sar report 50% idle time on my servers where vmstat would be showing 90 - 95% idle.
Can anyone enlighten me?
Thanks,
Darrell
Once upon a time I heard that sar was not as accurate as vmstat in reporting cpu utilization because of timeslicing. I believe this is true. I've seen sar report 50% idle time on my servers where vmstat would be showing 90 - 95% idle.
Can anyone enlighten me?
Thanks,
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2001 12:00 PM
12-30-2001 12:00 PM
Solution
Hi Darrel,
Both sar and vmstat use pstat calls to collect the the kernel counters. So, theoritically the reports should be the same.
The CPU in sar report is split into usr, sys and wio while CPU is reported only interms of usr and sys through vmstat. wio is waiting for io to complete otherwise idle. So, I guess the idle value in vmstat is nothing but a sum of wio and idle in sar report.
Does this make sense?.
-Sri
Both sar and vmstat use pstat calls to collect the the kernel counters. So, theoritically the reports should be the same.
The CPU in sar report is split into usr, sys and wio while CPU is reported only interms of usr and sys through vmstat. wio is waiting for io to complete otherwise idle. So, I guess the idle value in vmstat is nothing but a sum of wio and idle in sar report.
Does this make sense?.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2001 01:13 PM
12-30-2001 01:13 PM
Re: sar vs vmstat
Hi Darrell,
As Sridhar has pointed out, both sar and
vmstat both use 'pstat' for the accumulation
of kernel counters. I have never really used
these two tools for any sort of reporting.
I've really only used glance and mwa. Have
you tried glance to get a comparison. It may
actually point out the problem.
-Michael
As Sridhar has pointed out, both sar and
vmstat both use 'pstat' for the accumulation
of kernel counters. I have never really used
these two tools for any sort of reporting.
I've really only used glance and mwa. Have
you tried glance to get a comparison. It may
actually point out the problem.
-Michael
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2001 06:02 AM
12-31-2001 06:02 AM
Re: sar vs vmstat
Well, I should have read the manual more closely. It just never dawned on me that the difference in idle time was simply that sar breaks out the "idle while waiting on I/O".
An instructor in a class a number of years ago had said sar wasn't as accurate as vmstat. In my ignorance, I accepted his statement and never questioned it. It sounded logical.
I really feel stupid when I can't see something so simple.
Thanks,
Darrell
An instructor in a class a number of years ago had said sar wasn't as accurate as vmstat. In my ignorance, I accepted his statement and never questioned it. It sounded logical.
I really feel stupid when I can't see something so simple.
Thanks,
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP