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.
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.
Try to answer these in your own words:
kill -9 work on a zombie?Bonus: Why should you remove zombie processes even if they use 0 CPU and 0 memory?
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.
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!
@Chetan_Tiwary_ what a memorable analogy, thanks for sharing this lesson!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.