From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Reichling Newsgroups: gmane.os.tru64.managers Subject: Summary: Hanging processes Date: Fri, 14 Feb 2003 12:12:32 +0100 (CET) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200302141112.h1EBCWP01886@wrsx01.rz.uni-wuerzburg.de> Reply-To: reichling@rz.uni-wuerzburg.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit hits=-12.0 required=8.0 tests=CARRIAGE_RETURNS,LOCAL_CLIENT,LOCAL_SENDER,NICE_HELO, QUOTED_EMAIL_TEXT,SPAM_PHRASE_01_02,SUPERLONG_LINE version=2.43-string_20021002 X-Trace: main.gmane.org 1045221070 10739 80.91.224.249 (14 Feb 2003 11:11:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 11:11:10 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18jdjx-0002m5-00 for ; Fri, 14 Feb 2003 12:10:46 +0100 Original-Received: (qmail 16034 invoked by uid 5); 14 Feb 2003 11:12:46 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 16025 invoked by uid 49493); 14 Feb 2003 11:12:45 -0000 Original-Received: from reichling@rz.uni-wuerzburg.de by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-5.8/5.0):. Processed in 0.562645 secs); 14 Feb 2003 11:12:45 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 14 Feb 2003 11:12:45 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAA0089NPT4TG@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Feb 2003 06:12:44 -0500 (EST) Original-Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAA00EH0PSYUS@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Feb 2003 06:12:36 -0500 (EST) Original-Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx35.rz.uni-wuerzburg.de (8.8.8/8.8.8/uniwue-MM-1.05) with ESMTP id MAA82618 for ; Fri, 14 Feb 2003 12:12:33 +0100 (CET) Original-Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id AD04046D5A for ; Fri, 14 Feb 2003 12:12:33 +0100 (CET) Original-Received: from wrzx07.rz.uni-wuerzburg.de ([132.187.1.7]) by virusscan (wrzx30 [132.187.1.30:25]) (amavisd-new) with ESMTP id 03896-04 for ; Fri, 14 Feb 2003 12:12:33 +0100 (CET) Original-Received: from spamchecker (localhost [127.0.0.1]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id 894A74672 for ; Fri, 14 Feb 2003 12:12:32 +0100 (CET) Original-Received: from wrsx01.rz.uni-wuerzburg.de (wrsx01.rz.uni-wuerzburg.de [132.187.4.1]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7BBB04666 for ; Fri, 14 Feb 2003 12:12:32 +0100 (CET) Original-Received: (from rzuw007@localhost) by wrsx01.rz.uni-wuerzburg.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id h1EBCWP01886 for tru64-unix-managers@ornl.gov; Fri, 14 Feb 2003 12:12:32 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: ELM [version 2.4ME+ PL60 (25)] X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Xref: main.gmane.org gmane.os.tru64.managers:3327 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3327 I got some answers which all stated that the processes are waiting for an event. The only event I can imagine is NFS where I sometimes observe messages like "server not responding", but the other processes don't care about that. I installed truss as suggested, but I didn't get any output from the processes in question. And from lsof's output I can't imagine what the processes are waiting for: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME coolmail 492237 user001 cwd VDIR 0,4 8192 263205 /users (userserv:/users) coolmail 492237 user001 txt VREG 0,4 57344 378608 /users (userserv:/users) coolmail 492237 user001 txt VREG 3447,712245 0 0 /sbin/loader coolmail 492237 user001 txt VREG 3447,712245 0 0 /shlib/libc.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/generic/libm.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/libX11.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/libXt.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/libXext.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/libICE.so coolmail 492237 user001 txt VREG 2261,603043 0 0 /usr/shlib/libSM.so coolmail 492237 user001 0u unix 0x059addc0 0t0 ->(none) coolmail 492237 user001 1u unix 0x059addc0 0t0 ->(none) coolmail 492237 user001 2u unix 0x0ed7efc0 0t0 ->(none) It seems that we have to wait until the next reboot :-( Regards, Matthias Reichling Computing center University of Wuerzburg reichling@rz.uni-wuerzburg.de -------------------------- >From the answer of Stuart Whitby: > I believe that 5.1 has truss. If so, you can run truss against > the PID to see what it's up to. In all likelihood, waiting on > a file descriptor. Get lsof downloaded and installed, and run > it against the PID. Check the file descriptor, and you'll find > out what these processes are waiting for. > > In all likelihood, they're waiting on a device. That's the only > way I'm aware of to ensure a process cannot be killed using > kill -9. Until the device returns, there is no way to kill > the process. If you can reset the device in some way, the next > instruction to go to those processes should be the kill -9 that > you issued all those hours ago... -------------------------- >From the answer of Dr. Thomas P. Blinn: > If they are unkillable then they are waiting in some > system call that's sleeping uninterruptibly waiting for an event that never > happens. Without knowing EXACTLY what they are doing, I can't tell you why > they are in the state they are in, but it's almost certainly a kernel bug. > If you are REALLY skilled with "dbx" or have a copy of the "crash" utility, > you could go into the running kernel's data structures and get a dump of the > kernel stack of the thread associated with the hung processes; this would > let someone who has access to kernel sources to at least figure out where > the bug seems to be located. If you just reboot, you won't get a crash dump > with kernel context and there will be no debugging data. If you have support > you MIGHT get someone from the support center to help you, but otherwise it > is very unlikely you will find the root cause. In any case, if you can't > KILL the processes and they are not accumulating CPU, then the only way to > get rid of them is to reboot. Sorry about that.. -------------------------- Original question: > We observe the following problem: > > On a server under Tru64 UNIX V5.1A (Rev. 1885) with aggregate patch kit 2 > (t64v51ab02as0002) installed, there are many proceses which can't be > killed (kill -9): > > user001 142757 1 0.0 Nov 16 ?? 0:00.03 bin/coolmail -name fvwm2Coolmail -e bin/pine-manthey > user001 144370 1 0.0 Jan 08 ?? 0:00.03 bin/coolmail -name fvwm2Coolmail -e bin/pine-manthey > user001 149245 1 0.0 Jan 09 ?? 0:00.04 bin/coolmail -name fvwm2Coolmail -e bin/pine-manthey > user001 154268 1 0.0 Nov 17 ?? 0:00.04 bin/coolmail -name fvwm2Coolmail -e bin/pine-manthey > user001 157448 1 0.0 Jan 10 ?? 0:00.04 bin/coolmail -name fvwm2Coolmail -e bin/pine-manthey > ... > (about 85 processes) > > All processes have PPID 1. coolmail is a mail notification utility compiled > by the user and running without any privileges. > > > On a second server with the same OS version installed, we have a similar > problem with an other user and an other program: > > user002 13789 1 0.0 Dec 06 ?? 20:00:18 /usr/local/lib/g98a7/g98/l1002.exe 0 Dieazi.chk 1 /tmp/Gau-13789.int 0 /tmp/Gau-13789.rwf 0 /tmp/Gau-13789.d2e 0 /tmp/Gau-13789.scr 0 /tmp/Gau-13265.inp 0 junk.out 0 > user002 67391 1 0.0 Dec 13 ?? 20:52:16 /usr/local/lib/g98a7/g98/l1002.exe 0 Dieazi.chk 1 /tmp/Gau-67391.int 0 /tmp/Gau-67391.rwf 0 /tmp/Gau-67391.d2e 0 /tmp/Gau-67391.scr 0 /tmp/Gau-67394.inp 0 junk.out 0 > user002 94809 1 0.0 Dec 16 ?? 18:38:05 /usr/local/lib/g98a7/g98/l1002.exe 26214400 Dieazi.chk 1 /tmp/Gau-94809.int 0 /tmp/Gau-94809.rwf 0 /tmp/Gau-94809.d2e 0 /tmp/Gau-94809.scr 0 /tmp/Gau-94839.inp 0 junk.out 0 > > The TIME doesn't increase. A similar job of the same user runs (at least > until now) without problems. The software involved is Gaussian, running > again without any privileges. > > > There are some jobs with many days of CPU time running on these machines, > so we want to avoid any unnecessary reboots. > > How can we kill these jobs without rebooting the machine? > And how can we avoid such hanging jobs in the future?