From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510256.tru64-unix-managers.marc@archive.invalid> From: "Robert L. McMillin" Date: Thu, 05 Jun 1997 16:23:52 +0000 To: tru64-unix-managers Subject: Removing defunct (zombie) processes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510256 Since I see that more than one person has asked this question, I think my response to Francesco Zerra bears repeating: the important thing is to kill AND restart the parent process if it's spawning intolerable numbers of zombie children. The example given by Francesco... >@@ [root] # ps -ef | grep defunct >@@ www 22461 23163 0.0 - ?? 0:00.00 >@@ root 17073 17062 0.0 13:35:58 lat/624 0:00.01 grep defunct >@@ [root] # kill -9 23163 >@@ [root] # ps -ef | grep defunct >@@ root 16176 17062 0.0 13:36:21 lat/624 0:00.01 grep defunct ... doesn't show that he'd found the parent that created the zombies, nor that he'd restarted it, only that he'd killed it. For all he knows, he may have clobbered a vital system service -- say, sendmail. This would be Bad. Now it's my turn to pose a question to the audience: other than process slots, what system resources do zombies absorb? Ignoring the worst-case scenario where zombies become so numerous as to cause fork() to fail, it really worth restarting their ill-mannered parents to get said zombies out of the process table? --=20 Robert L. McMillin | Not the voice of Syseca, Inc. | rlm@syseca-us.com Personal: rlm@helen.surfcty.com |=A0rlm@netcom.com