SiD schrieb
wie kille ich denn Zombie Prozesse?
WIe im „richtigen Leben“: Gar nicht, so lange du keine Leibhaftige MAchete im Computer hast, um ihnen den Kopf abzuschlagen. 😉
Aber anders als „echte“ Zombies tun die Zombieprozesse im Computer nichts. Sie verbrauchen keinerlei Ressourcen, weil es sie eigentlich gar nicht mehr gibt, sondern sie nur noch eine PID zugewiesen haben. Übertragen auf ein Dateisystem wäre dies etwa ein Symlink, dessen Ziel nicht mehr existiert.
Den einen Satz in der englischen Wikipedia hierzu finde ich ganz passend:
Since there is no memory allocated to zombie processes except for the process table entry itself, the primary concern with many zombies is not running out of memory, but rather running out of process ID numbers.
Wobei dort auch der normale Vorgang, bzw. ein Entfernversuch beschrieben wird:
To remove zombies from a system, the SIGCHLD signal can be sent to the parent manually, using the kill command. If the parent process still refuses to reap the zombie, the next step would be to remove the parent process. When a process loses its parent, init becomes its new parent. Init periodically executes the wait system call to reap any zombies with init as parent.
Zombieprozesse lassen sich also nur über Umwege entfernen – Wenn überhaupt.