Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Context Switches /sec over 5000

Status
Not open for further replies.
Aug 30, 2002
79
IE
Hi

I am getting high context switches on my servers citrix recommends no more than 1000 but they can be anything from 5,000 to 50,000 on my servers. No users seem to have problems. Does anyone else have problem like this and did they try and decrese the amount of switches.
 
Context switching anywhere up to around 20,000 is not really a problem, especially on multi-processor servers, unless you (or your users) actually experience performance degradation in use. If you're seeing numbers that are consistently higher than that over a measured period of time (seconds - ie anything longer than a spike), then you have a problem.

Try increasing the size of the Page File as a preliminary measure - increased Page File activity is often a side-effect of high levels of context-switching, but in extreme cases (set far too low) could actually cause them.

Other things to take into account are;

Hardware - what is the spec of the servers?
Device Drivers - A poorly written driver can cause context switches to go through the roof - check NIC and printer drivers especially.
Users - How many users on each?
Workload - What are typical user loads (what apps do they run, how many, what sort of operations are performed).
Maybe you have a bespoke application which is creating a lot of threads, such as Oracle Financials or similar java-based apps.

The servers are context switching (flipping processor time from one thread to another in swift succession) for a reason. The remedy is not so much to get the number of context switches down by using tweaks, but to discover the root cause and address it. A utility such as CheckIT may help track down hardware issues, and perfmon will allow the monitoring of specific system objects.

RM can be a good friend here - use the Summary Reports to perform a historical analysis - see what has been hitting the server and when. You may need to adjust server load parameters, if you're running MetaFrame XPa or e, or have LB Services installed.

You will find useful tools as ever at
There is also an Advanced Concepts guide available for download from Citrix.com.

I hope this helps CitrixEngineer@yahoo.co.uk
 
My servers were experiencing that same problem and I pinpointed it to Outlook. Whenever Outlook would launch the Auto-Archive feature and a user didn't respond, then the context switches went through the roof. I added a key to disable the auto-archive feature and I no longer get messages about the context switches.
 
Thanks guys I will have a look to see if any ur ideas will reduce the threads. None of the users on the server are experiencing any problems everything seems ok. I was just asking just incase this was gonna be a problem down the line. The spec of my server is 2 proccessors at 1.7 GHZ with 2gb ram with apprioxametly 30-45 users per server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top