- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sar -q or vmstat?
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
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
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
тАО06-01-2006 03:07 AM
тАО06-01-2006 03:07 AM
sar -q or vmstat?
Just a quck question: if I use "sar -q" to look at the CPU run queue size, typically the values for runq-sz are lower (sometimes zero) than if I use vmstat and look at the 'r' column under 'procs'.
Can someone tell me why, and what's the difference between the sar and vmstat output? We're not sure which values to use for determining the CPU run queue length..
Regards
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2006 03:19 AM
тАО06-01-2006 03:19 AM
Re: sar -q or vmstat?
Thus if you have 10 runnable processes and you have 4 CPUs the run-queue will be 2.5.
I have never compared the two outputs but it may be like the run-queue * no of processors = r in vmstat
But again these figures may not exactly match as the collection period may not exactly coincide and dont know for what all reasons.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2006 03:35 AM
тАО06-01-2006 03:35 AM
Re: sar -q or vmstat?
Thanks for the reply. Essentially my understanding is the runq-sz value from sar-q is the average number of processes waiting on CPU. Each node in our cluster has 8 CPU's, so if I have a runq-sz greater than 8 - I have processes queueing on CPU.
If I combine your information, essentially the 'r' value from vmstat is the runq-sz from sar multiplied by the number of procs?
So if I want a definitive "we have processes queuing on CPU" answer - sar is a better metric?
Regards
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2006 03:54 AM
тАО06-01-2006 03:54 AM
Re: sar -q or vmstat?
echo "PRINT GBL_CPU_TOTAL_UTIL,GBL_RUN_QUEUE,GBL_PRI_QUEUE" > mysyntax
glance -adviser_only -syntax mysyntax -j 5 -iterations 10
Now to conclude that you have a CPU queue - just dont rely on the queue figure because many times it so happens that there are a lot of short lived runnable processes on the system and it often results in high CPU queue. But what you should look at is if there is any Priority queue as well - meaning process is waiting for getting its priority raised so as to be executed on a CPU.
Thus if you see high CPu usage, run queue and priority queue then you have a CPU bottle neck
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2006 04:11 AM
тАО06-01-2006 04:11 AM
Re: sar -q or vmstat?
Thanks - I'll get onto this and do some more digging. Thanks for your help, I'll put some points on the board when I have the results :o)
Regards
Dale