HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CPU run queue question
Operating System - HP-UX
1826325
Members
3459
Online
109692
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
02-13-2007 11:12 AM
02-13-2007 11:12 AM
For a few months I have been searching for a good answer as to what is a bad number of processes in the run queue. If anything the answer is it depends. But I would like to get a general clue of what is potentially bad. If I have a box with eight processors and my run queue is say 12 for a marked length of time, am I to assume this is bad?
I have read that the general rule is that your run queue should never be higher than the total number of cpu's in your machine. Any enlightening info would be great. I have read the CPU section of the HP-UX tuning and perf. book, but it does not give you anything specific number wise. If anything you only really learn that you need to baseline to make any future decisions about performance tuning.
I have read that the general rule is that your run queue should never be higher than the total number of cpu's in your machine. Any enlightening info would be great. I have read the CPU section of the HP-UX tuning and perf. book, but it does not give you anything specific number wise. If anything you only really learn that you need to baseline to make any future decisions about performance tuning.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 03:14 PM
02-13-2007 03:14 PM
Solution
The reason that there is no number recommended is because "it depends". The run queue gives the number of processes that are currently runnable. For 8 CPUs, a run queue of 12 is just fine -- or it may be delaying all 12 processes. It depends.
The reason it is impossible to give an answer is that the run queue metric is not meaningful by itself. If you are running 500 processes that are all polling once every second (and the average run time for the poll is 2 milliseconds), the run queue might be 20 to 200 and your 8 CPU system will have no delays and no problems. top and Glance will show 95% idle time.
On the other hand, if you have 9 compute-bound processes that run for hours with no I/O at all, then your run queue of 9 will be delaying 8 of the processes as the 9th process is brought in and another is made idle since there aren't enough processors. Virtually all performance issues are much, much more complicated than this and for databases, disk I/O is by far the most important metric for performance.
So a run queue of 12 is fine. You have to determine if those 12 processes must run faster, and if true, add 4 more processors.
Bill Hassell, sysadmin
The reason it is impossible to give an answer is that the run queue metric is not meaningful by itself. If you are running 500 processes that are all polling once every second (and the average run time for the poll is 2 milliseconds), the run queue might be 20 to 200 and your 8 CPU system will have no delays and no problems. top and Glance will show 95% idle time.
On the other hand, if you have 9 compute-bound processes that run for hours with no I/O at all, then your run queue of 9 will be delaying 8 of the processes as the 9th process is brought in and another is made idle since there aren't enough processors. Virtually all performance issues are much, much more complicated than this and for databases, disk I/O is by far the most important metric for performance.
So a run queue of 12 is fine. You have to determine if those 12 processes must run faster, and if true, add 4 more processors.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 02:02 AM
02-14-2007 02:02 AM
Re: CPU run queue question
Good answer. I was looking for clarification and I got it.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP