* HELP! What to do with defunct processes? And uninterruptable Comsat?
@ 1996-10-30 5:00 Giancarlo Pfeifer
1996-10-30 5:00 ` Steve VanDevender
0 siblings, 1 reply; 2+ messages in thread
From: Giancarlo Pfeifer @ 1996-10-30 5:00 UTC (permalink / raw)
I've an account on an Alpha Station 255 (233MHz) running Digital UNIX
Version V4.0 and I'm facing a nasty problem that I don't really know how
to deal with.
All happened when I decided to kill a process using a "kill -9 #pid"
command. The process immediately entered the state of <defunct> process,
generating at the same time, a comsat process with the status of
uninterruptable process. Every time I get new mail, the system
automatically generates a new comsat process.
The question is: how can I (or my sysop) definitely remove the <defunct>
process? and how can I (or my sysop) change the status of comsat to make
it killable? And what is it exactly, and why does it become
uninterruptable?
Hoping it will give some ideas to diagnose the error, I'm including
here the results of a ps command:
pfeifer@grifo>ps -a -u pfeifer -f
UID PID PPID C STIME TTY TIME CMD
pfeifer 409 1 0.0 - ?? 0:00.00 <defunct>
pfeifer 421 1 0.0 - ?? 0:00.00 <defunct>
pfeifer 4049 1 0.0 Oct 29 ?? 0:00.00 comsat
pfeifer 4320 1 0.0 Oct 29 ?? 0:00.01 comsat
pfeifer 6270 1 54.7 11:42:01 ?? 02:58:32 /usr/local/gap3r4p3/bin/gap -m 24m -l /usr/local/gap3r4p3/lib/ -h /usr/local/gap3r4p3/doc/
pfeifer 6638 1 0.0 12:55:05 ?? 0:00.01 comsat
pfeifer 6813 1 0.0 13:22:05 ?? 0:00.01 comsat
pfeifer 7162 1 0.0 16:25:25 ?? 0:00.01 comsat
pfeifer 3624 1 0.0 Oct 29 lat/621 0:00.48 -tcsh (tcsh)
Where PID 3624 is my shell and 6270 is a batch job which works, while all
the other processes are those I'd like to kill (the comsat have a U in
the Status column of a "ps -a -u pfeifer" command!).
Moreover I read that SVR4 keeps in the 'directory' /proc the image of the
processes running. The next is a partial listing of such directory:
pfeifer@grifo>cd /proc
pfeifer@grifo>ll|grep pfeifer
-rw------- 1 pfeifer laur 17408000 Oct 30 17:09 00409
-rw------- 1 pfeifer laur 17416192 Oct 30 17:09 00421
-rw------- 1 pfeifer laur 17416192 Oct 30 17:09 03624
-rw------- 1 pfeifer laur 17154048 Oct 30 17:09 04049
-rw------- 1 pfeifer laur 17154048 Oct 30 17:09 04320
-rw------- 1 pfeifer laur 39354368 Oct 30 17:09 06270
-rw------- 1 pfeifer laur 17154048 Oct 30 17:09 06638
-rw------- 1 pfeifer laur 17154048 Oct 30 17:09 06813
-rw------- 1 pfeifer laur 17154048 Oct 30 17:09 07162
-rw------- 1 pfeifer laur 17121280 Oct 30 17:09 07249
-rw------- 1 pfeifer laur 17457152 Oct 30 17:09 07252
Does the length 17408000 of 00409 means that I'm using over 17MB's memory
of the Alpha with a defunct application?
I hope someone will give me some hints or suggestions and I thank you for
the attention and for help!! (this thing is driving me mad! :-| )
Thanks,
gp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Giancarlo Pfeifer
pfeifer@griffo.mat.unimi.it
http://www.uea.ac.uk/~u9405267/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HELP! What to do with defunct processes? And uninterruptable Comsat?
1996-10-30 5:00 HELP! What to do with defunct processes? And uninterruptable Comsat? Giancarlo Pfeifer
@ 1996-10-30 5:00 ` Steve VanDevender
0 siblings, 0 replies; 2+ messages in thread
From: Steve VanDevender @ 1996-10-30 5:00 UTC (permalink / raw)
Giancarlo Pfeifer <pfeifer@griffo.mat.unimi.it> writes:
> I've an account on an Alpha Station 255 (233MHz) running Digital UNIX
> Version V4.0 and I'm facing a nasty problem that I don't really know how
> to deal with.
> All happened when I decided to kill a process using a "kill -9 #pid"
> command. The process immediately entered the state of <defunct> process,
> generating at the same time, a comsat process with the status of
> uninterruptable process. Every time I get new mail, the system
> automatically generates a new comsat process.
> The question is: how can I (or my sysop) definitely remove the <defunct>
> process? and how can I (or my sysop) change the status of comsat to make
> it killable? And what is it exactly, and why does it become
> uninterruptable?
A <defunct> process is also known as a zombie process. A zombie is a
child process whose parent has not used the wait() system call to gather
the child's exit status. For as long as the parent does not call wait,
the process table entry for the child remains so that eventually the
parent can get the exit status of the child. However, the zombie process
takes up no resources other than the process table slot -- a zombie does
not occupy memory or hold any other system resources.
If you kill the process with "kill -9", it cannot catch or respond to
the signal in any way; as soon as the signal is delivered, the kernel
kills the process immediately. Therefore the zombie cannot be directly
responsible for spawning any other processes.
You probably need to look at the output of "ps alx" to find out which
process has spawned the zombies (examine the PPID field of the output).
If the parent will never wait() for the zombie children then your only
recourse is to kill the parent process; at that point the children will
be inherited by 'init', which does a constant wait() loop to gather any
orphaned zombies.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-10-30 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-30 5:00 HELP! What to do with defunct processes? And uninterruptable Comsat? Giancarlo Pfeifer
1996-10-30 5:00 ` Steve VanDevender
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox