Sleeping Processes

From: Jonathan Williams (jonathw@shubertorg.com)
Date: Tue Jun 28 2005 - 10:54:31 EDT


We had some problems with our new GS1280 last week, and since then the
question of system tuning in general has come up. One of the questions came
up was about our application server.

The Application server is an ES80, running Tru64 Unix 5.1b, pk4. It runs a
proprietary application that consists of many (well...about 50 or so)
individual programs that are each attached to their own queue. They
basically just wait around until something is in their queue, then do it
real quick, and go back to waiting.

While the queues are waiting, the processes are in a SLEEP mode (going by
top, and ps), and then switch to running for a bit while they are doing
something, and then back to sleeping.

The question is, is there any amount of time involved in switching from
sleeping to running. One of the programmers is thinking there is a way to
have the processes in a RUNNING state all the time--I'm not sure if that's a
UNIX thing, or a programming thing. But whether we want to change it
depends on whether or not there is any time (anything more than .1 sec)
wasted by switching from sleeping to running. Or is it like a millionth of
a second or something negligible, in which case we don't really care.

So is this something people know? Or something I can measure myself? Any
help, or pointers in the right direction would be greatly appreciated. TIA

-Jonathan Williams



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:20 EDT