From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,600e72eb6331982b,start X-Google-Attributes: gidfee84,public From: Kevin Calcagno Subject: Processes slow to terminate Date: 2000/03/21 Message-ID: <38D6E144.1C109899@quik.com>#1/1 X-Deja-AN: 600217985 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@quik.com X-Trace: newsfeed.intelenet.net 953606209 140.186.142.15 (Mon, 20 Mar 2000 18:36:49 PST) Organization: Quik Internet -- http://www.quik.com/ MIME-Version: 1.0 Reply-To: kcalcagn@sels.rsc.raytheon.com NNTP-Posting-Date: Mon, 20 Mar 2000 18:36:49 PST Newsgroups: comp.unix.osf.osf1 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.