RE: Server process stalled during massive thread creation : scheduler problem ?

Cornelius, Martin (DWBI)
2008-09-16T09:27:59Z

Christopher Snook wrote:

> I would conclude that the application is severely broken, not the
server
> itself. The scheduler is trying to be fair. Unless you're assigning
> priorities, it has no way of knowing that those 1000 CPU hog processes
are
> less important than your netcat process. Once those processes have
shown
> to be much longer-running than netcat, the kernel realizes that giving
> netcat priority is the the best approximation to ideal
> shortest-time-to-completion-first scheduling, so netcat gets to run
> whenever it's able.

> I think the scheduler is working correctly. If you still see this
> behavior when you give your netcat process higher scheduler priority,
then
> we can talk about bugs.

Hi Chris, thanks for answering my question. I repeated the test, giving
the 'netcat' server a much higher priority than the load generators, and
indeed, the stalling disappeared.

************************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
************************************************