- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Multi CPU HPUX 11.23 default Process CPU distribut...
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
10-02-2009 12:54 AM
10-02-2009 12:54 AM
how HPUX 11.23 distributes the processes to the CPU into an dual CPU System per default ?
The attachment shows the output from top.
I see there that some processes belong to CPU 0 and others to CPU 1.
many thanks for all feedbacks.
Olaf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 03:29 AM
10-02-2009 03:29 AM
Re: Multi CPU HPUX 11.23 default Process CPU distribution
you can control on which cpu your process is running with mpctl()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 03:43 AM
10-02-2009 03:43 AM
Re: Multi CPU HPUX 11.23 default Process CPU distribution
This is not exclusive, just a factor the scheduler uses in deciding where to start a thread when it becomes runnable. Like a gravety force, or a leash. But 'when you gotta go, you gotta go'.
There are mutliple scheduler choices (realtime, timeshare) and run time tweaks (mpsched) on hpux so 'it depends'.
Please note that the exact behavior may be release dependent (this is the stuff that gets tweaked for better (TPC-C) benchmark results) and platform dependent (Cellboards, numa)
Several papers / forum topics have been written on this before. Check with google using keywords such as affinity and mpsched.
hth,
Hein van den Heuvel
HvdH Performance Consulting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 03:58 AM
10-02-2009 03:58 AM
Re: Multi CPU HPUX 11.23 default Process CPU distribution
Did i understand you right that the scheduler dynamical (during process runtime) decides to change the cpu of a given process if he think that the other cpu gives the faster result ?
Die i understand you right, that the screenshot i take is not static belonging the process/cpu#. So that it can be that in some time later the same process is on the other cpu (of cause a optimization decision in the scheduler) ?
Thanks for feedback.
Olaf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 04:17 AM
10-02-2009 04:17 AM
SolutionOr is just less busy.
>some time later the same process is on the other CPU (of cause a optimization decision in the scheduler)?
Yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 07:24 PM
10-02-2009 07:24 PM
Re: Multi CPU HPUX 11.23 default Process CPU distribution
If this is a cell based system it does this for the cpus in a cell then across cells.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 12:05 AM
10-05-2009 12:05 AM
Re: Multi CPU HPUX 11.23 default Process CPU distribution
scheduler dynamical (during process
runtime) decides to change the cpu
of a given process if he think that
the other cpu gives the faster result ?
Yes looking at the length of the queue of threads waiting on each cpu queues in READY state ( this queue is named runqueue). So only READY threads but not RUNNING processes are switched to an other processor queue.
The scheduler tries to balance runqueue length when they are larger than some values.
> Die i understand you right, that the
> screenshot i take is not static belonging
> the process/cpu#. So that it can be that
> in some time later the same process is on
> the other cpu (of cause a optimization
> decision in the scheduler) ?
Yes, except if your threads/processes are bound to a cpu through pset, mpsched(1) or mpctl(2).