<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Cameron Simpson wrote:
<blockquote cite="mid:20080626015224.GA3729@cskk.homeip.net" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator"
 content="MS Exchange Server version 6.0.6619.12">
  <title>Re: How to find and clear zombie processes w/o rebooting?</title>
<!-- Converted from text/plain format -->
  <p><font size="2">On 25Jun2008 18:33, Daniel B. Thurman
<a class="moz-txt-link-rfc2396E" href="mailto:dant@cdkkt.com"><dant@cdkkt.com></a> wrote:</font>
  <br>
  <font size="2">> Using F8, I have found that Nautilus sometimes
hangs and</font>
  <br>
  <font size="2">> runs at 100% CPU.  Force killing Nautilus's drive
windows</font>
  <br>
  <font size="2">> was the only way to recover.  I am not sure that
force killing</font>
  <br>
  <font size="2">> this drive window is related to the zombie that I
founding using</font>
  <br>
  <font size="2">> top.</font>
  <br>
  <font size="2">> I also discovered that my swap was increased to
2GB of 4GB</font>
  <br>
  <font size="2">> and has stayed there ever since.</font>
  </p>
  <p><font size="2">Zombies are just process slots of exit()ed
processes awaiting collection.</font>
  <br>
  <font size="2">They do not consume CPU time or swap space.</font>
  </p>
  <p><font size="2">> So before I accuse Nautilus as being the
zombie process, how</font>
  <br>
  <font size="2">> do I locate it using ps or some other tool to
find out what is</font>
  <br>
  <font size="2">> going on and to what process the zombie was?</font>
  </p>
  <p><font size="2">Zombies are in the Z state. They are exited
programs whose parents have</font>
  <br>
  <font size="2">not called wait() to collect the exit status.</font>
  </p>
  <p><font size="2">> In the same breadth, is there a way to clear
zombie processes</font>
  <br>
  <font size="2">> without being forced to reboot the system which
would certainly</font>
  <br>
  <font size="2">> remove the zombie process and clear the swap
space?</font>
  </p>
  <p><font size="2">Removing zombies will do NOTHING about your swap
space, since they are</font>
  <br>
  <font size="2">not consuming it. (Of course a reboot will clear the
swap, as it does</font>
  <br>
  <font size="2">everything else.)</font>
  </p>
  <p><font size="2">They only way to clear a zombies process slot
(which is all a zombie</font>
  <br>
  <font size="2">process actually is) is to find the zombie's parent
process (using ps'</font>
  <br>
  <font size="2">"f" (forest) option, for example, or just looking at
the PPID column)</font>
  <br>
  <font size="2">and either causing the parent to do a wait() for the
zombie if possible,</font>
  <br>
  <font size="2">or to kill the parent (which will cause the zombies to
be inherited by</font>
  <br>
  <font size="2">process 1, which will then wait() for it, cleaning it
up).</font>
  </p>
  <p><font size="2">Zombies are essentially untidy but harmless. They
are not eating you</font>
  <br>
  <font size="2">machine's brains (ram/swap/cpu).</font>
  </p>
  <p><font size="2">Cheers,</font>
  <br>
  <font size="2">-- </font>
  <br>
  <font size="2">Cameron Simpson <a class="moz-txt-link-rfc2396E" href="mailto:cs@zip.com.au"><cs@zip.com.au></a> DoD#743</font>
  <br>
  <font size="2"><a moz-do-not-send="true"
 href="http://www.cskk.ezoshosting.com/cs/">http://www.cskk.ezoshosting.com/cs/</a></font>
  </p>
  <p><font size="2">Zombies don't get pumped.       - Jake, in
rec.climbing</font>
  </p>
</blockquote>
I like your signature ;)<br>
<br>
I did a ps aux | grep Z :<br>
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND<br>
dant      3902  0.0  0.0      0     0 ?        Z    Jun24   0:00
[Xsession] <defunct><br>
<br>
Um - ok.  Something "burped" with the Xsession.  Wonder what happened.<br>
<br>
I noticed that my system became slightly sluggish and I have no clue
what is<br>
causing it.  I do know that a reboot will bring the system into a
'snappy' state<br>
and my script that converts ape to mp3 and splits mp3 with a provided
cue<br>
file and it really rips.  But then over the last few days, it started
slowing down<br>
quite noticeably.<br>
<br>
Ah- I think I will just do it the BGM$ way: just hit "reset" :D<br>
<br>
Thanks for the pointer,<br>
Dan<br>
<br>
<br>
</body>
</html>