HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vmstat - sar
Operating System - HP-UX
1830565
Members
4981
Online
110014
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
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
09-09-2002 12:54 AM
09-09-2002 12:54 AM
vmstat - sar
Hi all,
What's difference between sar -q (field runq-sz)and vmstat (field r ).
Thank you
What's difference between sar -q (field runq-sz)and vmstat (field r ).
Thank you
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 01:17 AM
09-09-2002 01:17 AM
Re: vmstat - sar
sar reports the average length of the run queue over the interval whereas vmstat reports the length of the queue when the snapshot is taken. Hence vmstat's output is an integer whereas sar's is to one decimal place.
Regards,
John
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 01:21 AM
09-09-2002 01:21 AM
Re: vmstat - sar
The vmstat field r is the number of processes actually heavily using a single cpu at the time. eg. on a 4 cpu server if you say have 3 large oracle db processes running - each will use a single cpu (say using 90%+ of each cpu) then vmstat shows 3 processes in the run q (one runing on each of 3 cpu's). If the 4th cpu gets used also this value could jump to 4 but I dont think it could ever go over 4 (the max number of cpu's on the server).
sar -q (runq-sz) is the number of processes backed up or in the global queue (all cpu's). Its more of a global metric (than vmstat above). The ideal is a run queue length of 1 per cpu - so on a 4 cpu server any runq up to 4 is fine. Uptime also reports runq length but over different time periods so its a bit better.
Im from Palmerston North, New Zealand, but somehow ended up in London...
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