Hi, im getting PID level of 267,XXX for almost every program i open, before
i didn't get such a high PID. What is the problem here?
> Why is that a problem? PIDs are assigned automagically.
> > Hi, im getting PID level of 267,XXX for almost every program i open,
> > i didn't get such a high PID. What is the problem here?
I've been asked to look into a problem with a server application that
is suffering a high number of context switches when running on a
The application in question is an RPC server which interacts with a
SQL database. All the RPC calls from client to server are synchronous,
so the clients block until the server has completed their request. The
system works well, even under high load, when it is run on a single
processor machine but when it is placed on a multiprocessor box, the
performance degrades (and the degradation seems to increase in
relation to the number of processors used).
I have used perfmon to capture some statistics about the performance
of the system and the following is a few of the statistics gathered:
Single CPU system:
Thread count : 70.272
Processor Queue Length: 12.282
Context Switches/Sec : 3269.289
Quad CPU System:
Thread count : 46.860
Processor Queue Length: 0.673
Context Switches/Sec : 109203.791
Obviously the context switching rate has gone through the roof on the
quad-processor box, resulting in very poor performance, but can anyone
suggest any reasons for why this might happen?
I'm presuming that it has something to do with the fact that on the
multiprocessor system there really are two (or more) threads running
the same code at the same time (as opposed to the single processor
machine where, thanks to time slicing, it just seems as though the
threads are running at the same time).
What I'd be keen to know is, what sort problems in the code might be
responsible for the huge leap in context switches?
I'd be grateful for any thoughts on this matter,