Tuesday, August 9, 2011

Zombie process Vs Orphan process


Zombie process Vs Orphan process

Zombie Process - Is something already dead. It won't take any resource from your system but have an entry in the process table.
                 So its not harm to have Zombie proc as it consume no CPU. But its suggested to clear them as sometimes it may create an issue.

Cause : Mostly due to bad coding

Orphan Process - Orphan process is a process, whose parents are dead ( either terminated, killed or exited ) but the child process is still alive.
                 Unlike Zobie Process, Orphans do consume CPU and too many orphans means system is heavily loaded and lot of CPU getting wasted.

How to identify :

Orphan Process - use ptree
Zombie              - use top ( check for processes with STAT as z )


UR's Key Run ;-) 

No comments:

Post a Comment