cancel
Showing results for 
Search instead for 
Did you mean: 
TudorRaduta
Community Manager
Community Manager
  • 221 Views

Crack the mystery of zombie processes (no experience needed)

🧟 Linux Challenge for Students: Why Won’t This Process Die?

Hi everyone! Sharing this Wednesday Linux challenge from the Platform & Linux board, a great chance to practice real troubleshooting skills that come up in exams, labs, and interviews.

Even if you're just starting out, this scenario is perfect for learning how Linux handles processes behind the scenes. Give it a try, read others’ answers, and ask questions as that’s how you grow fast.

The Scenario (Student Edition)

A process is stuck in the system, and even kill -9 can’t remove it. You check again… and the process is still there.

This is a classic zombie process, a great concept to learn early because it appears in courses, exams, and real systems.

🧠 Your Task

Try to answer these in your own words:

  1. Why doesn’t kill -9 work on a zombie?
  2. What command would you run to find the parent process of the zombie?
  3. How do you clean it up once you identify the parent?

Bonus: Why should you remove zombie processes even if they use 0 CPU and 0 memory?

Join the Challenge & Post Your Answer

A great practice exercise and a chance to learn from industry professionals.

Feel free to comment even if you're unsure as this group is for learning, not perfection.

3 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 132 Views

Zombies cannot be killed ( watched World War Z ? ) because they are zombies ( already dead ) hence kill -9 wont shoot them. 

Zombies are dead and their parents dont know about it ( sad !) - kernel keeps the zombies ( memory of its life ! ) in the process table like a memorial.

To remove it from process table - inform the parent ( send a sigchild to parent ) - do a ps command, grep it with "Z" or "defunct"  to get the parent ID. 

or restart the parent process or kill the parent ( hopefully ?).

 

If you dont remove zombies - it will exhaust the PIDs, "fork bomb" will crash your system. 

PS - Zombies are indeed symptoms but they are not the epidemic!

TudorRaduta
Community Manager
Community Manager
  • 92 Views

@Chetan_Tiwary_ what a memorable analogy, thanks for sharing this lesson!

Blue_bird
Starfighter Starfighter
Starfighter
  • 57 Views

Great Explanation..! Nice way to memorize..!

Thanks for sharing...@Chetan_Tiwary_

 

Join the discussion
You must log in to join this conversation.