- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpu-switching on multi-cpu host
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
05-12-2003 01:41 AM
05-12-2003 01:41 AM
Is it possible to 'lock' some certain process to some certain processor?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 01:49 AM
05-12-2003 01:49 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 02:03 AM
05-12-2003 02:03 AM
Re: cpu-switching on multi-cpu host
You can use hp PRM (Process Resource Manager)to do this.
but it's surprising to hear that one CPU is used about 100% and other are idle. infact in HP UX kernel will take care of this and i naver saw behaviour like this ...
SUnil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 02:06 AM
05-12-2003 02:06 AM
Re: cpu-switching on multi-cpu host
One can write programs to do that.
check my above link where Bill has an example of that.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 03:37 AM
05-12-2003 03:37 AM
Re: cpu-switching on multi-cpu host
Please provide more information....
- What OS revision
- Is always the same CPU loaded? Is it CPU0?
- What means "near 100%"
... maybe balancing is not needed at all?
It is possible (but usually not needed!) to "lock" a process to a CPU using the mpctl() syscall. Beginning with 11.11 you have the mpsched(1) command.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 04:48 AM
05-12-2003 04:48 AM
Re: cpu-switching on multi-cpu host
So the processes must be running fine on the single processor.
It would be nice to know what OS.
I have seen some anomalies with 11.11 in that a process that takes 100% of a cpu will be shifted between different idle cpus and will not stick to a single cpu. This causes a slower running process because of the switching. This did not happen with 10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 10:12 AM
05-12-2003 10:12 AM
Re: cpu-switching on multi-cpu host
And the CPU I'm talking is CPU3. (At least, during nighttime when there is very small load per service process, those three processes are running on CPU3).
We started wondering this issue, because one night, one minute after the scheduled backup started, one of our service processes died. At least it _looked_ so obvious that the service process died for some resource problem with the backup.
About the need of the load balancing; I was thinking like Dietmar said but I wasn't just sure; looks like there's no real need to load balancing after all because the load on that one cpu stays between 90-96% during that backup.
It just looks strange that one processor does all the work while the others are idling.
Attachment file contains one snapshot of top output during backup. And if we look the average cpu percentage, everything looks ok.
So, summa summarum; can I trust that the operating system handles perfectly load balancing between cpus when needed without interfering any user processes or do I had to question the functionality of multi-cpu-system ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 07:55 AM
05-13-2003 07:55 AM
Re: cpu-switching on multi-cpu host
I asked for OS and CPU# because there was is a really old streams pty issue that binds threads accidently to the monarch COU, which is mostly #0 (patched with PHNE_19616 or later). This is obviously not your problem though.
I think you should trust the scheduler.
However, you may try to lock the processes to different CPUs and see if performance increases. I attached a simple program that can be used for this.
Compile it:
# cc -o mpctl mpctl.c
Bind, e.g. PID 500 to CPU 3:
# ./mpctl 3 500
Unbind it again:
# ./mpctl -1 500
Best regards...
Dietmar.