Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Kevin Calcagno <kcalcagn@quik.com>
Subject: Processes slow to terminate
Date: 2000/03/21	[thread overview]
Message-ID: <38D6E144.1C109899@quik.com> (raw)

I have an application that is supposed to run as follows on an
Alpha-based system running Digital UNIX 4.0D with the real-time kernal:

FOO begins and spawns BAR, which spawns several children of its own and
then exec's to become BAZ.  A signal handler is setup in BAZ to catch
SIGCHLD.  Should one of BAZ's children (originally BAR's children) exit
unexpectedly, BAZ will notify FOO.  FOO then sends a SIGTERM to BAZ's
process group to kill the rest of the children.  When BAZ detects that
all of its children are dead, it will exit.  FOO then reports to the
user and is ready to respawn BAR to start the process again.  Each of
BAZ's children frequently report status to the user (and to FOO), so
it's easy to figure out when one of them crashes.  FOO expects that the
rest of BAZ's children will die (indicated by BAZ's subsequent exit)
within 15 seconds, and it complains if that doesn't happen.

Most of the time, this works as specified.  Occasionally, however, it
takes much longer (60 seconds or more) for all the children to exit. 
This occurs only after the tasks have been running non-stop and
crash-free for several days, but a multi-day run does not always result
in this slow kill.

Why does this happen?  Each time it does occur, some tasks are slower to
exit than others, but these are different tasks each time.  Each task
does something useful fairly continuously, so no task spends an
inordinate amount of time swapped out.  The system is completely
dedicated to this one application, so there are no additional user
processes to consume memory or CPU time.  I have heard that there is a
kernal or configuration option somehow related to this, but I don't know
any specifics.  Any help would be greatly appreciated.

Thank you,

Kevin Calcagno

-- This has most likely just been my own opinion.



                 reply	other threads:[~2000-03-21  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox