- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- context switching
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
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
тАО10-14-2002 07:12 AM
тАО10-14-2002 07:12 AM
context switching
We are having V class system running hpux 11.11. System has 16Gb mem and 12 CPUs. When I see the sar report I always see pswch/s value in thousands. We are not running many processes. I'm expecting minimal minimal context switching ... What may be the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 07:39 AM
тАО10-14-2002 07:39 AM
Re: context switching
Perhaps someone changed the timeslice kernel parameter :
timeslice
Leave this set at 10. If this is set to 1, which used to happen because of that old sam
configuration template with a bug in it, excessive context switching overhead will usually
result. The system would spend, oh, 10 times what it normally does simply handling
timeslice interrupts. It can possibly also cause lock contention issues if set too low.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 07:58 AM
тАО10-14-2002 07:58 AM
Re: context switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 08:06 AM
тАО10-14-2002 08:06 AM
Re: context switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 08:06 AM
тАО10-14-2002 08:06 AM
Re: context switching
Do you run glance? IF so, then it might be worthwhile to examine some of your application processes in detail to see if they are being forced from CPU by timeslice or abandoning the CPU voluntarily. If they are giving up CPU voluntarily (which is my guess) then what you are seeing is a symptom of the application code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 08:19 AM
тАО10-14-2002 08:19 AM
Re: context switching
When I was looking at the sar reports/ Glance view I couldn't find anything strange other than context switching... any thoughts...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 09:40 AM
тАО10-14-2002 09:40 AM
Re: context switching
I am not saying that you have a physical problem, but that ratio of thousands of voluntary to forced switches is not usual or normal. And if you think about it, if the system is waiting on a partially failed disk, the disk I/O rate would be unusually low.
To further explain, a voluntary context switch occurs when the process does an I/O and takes itself out of the runqueue. When the I/O completes it puts itself back into the runque to take it's turn at the processor.
A forced or involuntary context switch occurs when the process has used more than half of it's time slice, and gets switched out before it has completed, for a process with higher or equal priority. It is then placed by the system back in the runqueue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 11:54 AM
тАО10-14-2002 11:54 AM
Re: context switching
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 03:31 PM
тАО10-14-2002 03:31 PM
Re: context switching
Try to balance the IO as much possible over the primary and alternate paths.
It makes a big difference even on Fibre channel.
-ETL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 03:50 PM
тАО10-14-2002 03:50 PM
Re: context switching
Do you have EMS running?
live free or die
harry