OK, I admit to knowing almost nothing about the way tasks are allocated
between threads in WebWare, but I happened to do a "ps axf" today on a
machine that has been running for about 8 months, and saw this:
1622 ? SN 0:00 /bin/sh ./AppServer
19647 ? SN 49:47 \_ python Launch.py ThreadedAppServer
19648 ? SN 1:48 \_ python Launch.py ThreadedAppServer
19649 ? SN 142:38 \_ python Launch.py ThreadedAppServer
19650 ? SN 0:00 \_ python Launch.py ThreadedAppServer
19651 ? SN 117:47 \_ python Launch.py ThreadedAppServer
19652 ? SN 0:00 \_ python Launch.py ThreadedAppServer
19653 ? SN 0:00 \_ python Launch.py ThreadedAppServer
19654 ? SN 0:00 \_ python Launch.py ThreadedAppServer
19655 ? SN 0:00 \_ python Launch.py ThreadedAppServer
19656 ? SN 0:00 \_ python Launch.py ThreadedAppServer
Notice the uneven distribution of CPU times. Now, if the threads are
tasked sequentially, so that thread 2 is used only if thread 1 is
already busy, then this makes sense; it says I often had 2 simultaneous
requests, but never more than 2.
Is that actually how tasks are assigned to threads?
--
- Tim Roberts, timr@...
Providenza & Boekelheide, Inc.
|