- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.22 Process switching CPU problem
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
03-24-2003 12:52 PM
03-24-2003 12:52 PM
We notice that as the process runs, it continuously switcehs back and forth from CPU 0 to CPU 1. In the course of about 3 hours, we have over 60,000 switches! Is this an attempt to load-balance the dual CPUs? On our old system (running 2 PA-RISC CPUs) the process stayed on 1 CPU until completion.
Any help on this is greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2003 01:00 PM
03-24-2003 01:00 PM
Re: HPUX 11.22 Process switching CPU problem
What is the kernel parameter
timeslice
set to?
If it's 1 CHANGE IT 10.
That alone could cause massive context switching.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 01:42 PM
03-25-2003 01:42 PM
Re: HPUX 11.22 Process switching CPU problem
If you think it is related to the presence
of the 2nd CPU, you can try a simple
experiment to disable the second processor
temporarily by booting with the '-P1' option.
HP-UX Boot Loader for IA64 Revision 1.713
Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix
Seconds left till autoboot - 10
Type 'help' for help
HPUX> boot vmunix -P1
Using the 'P1' option as shown above will
temporarily restrict the system to using
only one of the available processors. This
will get undone automatically on the next
reboot.
This should help you tell whether the slowness
is related to (needless?) switching between
processors. Keep in mind that the IPF
systems may save and restore much more state
than PA systems do when doing a context switch.
A future release of HP-UX will contain some
optimizations to that process.
There are other possible explanations for
the extra time. How was the application
compiled for the rx2600? Are you running
a PA or an IPF version of the binary?
Although PA binaries will generally work
on IPF systems they will generally run
somewhat slower than native IPF code would.
It's best to recompile them native if you can.
Can you describe the nature of the job in
question? (Does it do a lot of I/O ? Use a lot
of memory? Do a lot of system calls ? A lot of floating point computations?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 01:59 PM
03-25-2003 01:59 PM
Re: HPUX 11.22 Process switching CPU problem
It must be some kind of optimization that is done with 11.22 as it was not happening with 11.0 on the last multiprocessor system I tested.
It is much more efficient to keep the process in the same cpu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 02:13 PM
03-25-2003 02:13 PM
Re: HPUX 11.22 Process switching CPU problem
of the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 04:53 AM
03-26-2003 04:53 AM
Re: HPUX 11.22 Process switching CPU problem
Timeslice is set to "10" already; that's the first thing we checked. Our old system was set to 1, and we didn't have this problem.
We cannot reboot the machine right now; it's in production. However, I can answer the questions about the actual program.
The program in question is an engine analysis program, which was compiled on/for PA-RISC. It is mainly floating point ops, very CPU intensive but not particularly disk or i/o heavy.
Also, I didn't mean to say that the cause of the slowdown was due to the switching; just that this is a new behavior that we didn't see in our old system. If possible we'd like to disable it without disabling the CPU. I was hoping for further insight into why the analysis application would run so much slower.
I'll see if we can get a recompile on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 05:03 AM
03-26-2003 05:03 AM
Re: HPUX 11.22 Process switching CPU problem
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 08:28 AM
03-26-2003 08:28 AM
Re: HPUX 11.22 Process switching CPU problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 11:03 AM
03-26-2003 11:03 AM
SolutionI think that Doug's suggestion to try to get a native IPF version of the binary is a very good one. There may also be some useful intformation to be had from Caliper or perhaps prospect. http://www.hp.com/go/prospect and http://www.hp.com/go/caliper. If not now, certianly once you have a native IPF binary.