Lesson plan

Zombie process

On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution (via the exit system call) but still has an entry in the process table: it is a process in the "terminated state". This occurs for the child processes, where the entry is still needed to allow the parent process to read its child's exit status: once the exit status is read via the wait system call, the defunct process' entry is removed from the process table and it is said to be "reaped". A child process initially becomes defunct, only then being removed from the resource table. Under normal system operation, defunct processes are immediately waited on by their parent and then reaped by the system. Processes that stay defunct for a long time are usually an error and can cause a resource leak. Generally, the only kernel resource they occupy is the process table entry, their process ID. However, defuncts can also hold buffers open, consuming memory. Defunct processes can hold handles to file descriptors, which prevents the space for those files from being available to the filesystem. This effect can be seen by a difference between du and df . While du may show a large amount of free disk space, df will show a full partition. If the defuncts are not cleaned, this can fill the root partition and crash the system.…

Back to article

Article summary

On Unix and Unix-like computer operating systems, a zombie process or defunct process is a process that has completed execution (via the exit system call) but still has an entry in the process table: it is a process in the "terminated state". This occurs for the child processes, where the entry is still needed to allow the parent process to read its child's exit status: once the exit status is read via the wait system call, the defunct process' entry is removed from the process table and it is said to be "reaped". A child process initially becomes defunct, only then being removed from the resource table. Under normal system operation, defunct processes are immediately waited on by their parent and then reaped by the system. Processes that stay defunct for a long time are usually an error and can cause a resource leak. Generally, the only kernel resource they occupy is the process table entry, their process ID. However, defuncts can also hold buffers open, consuming memory. Defunct processes can hold handles to file descriptors, which prevents the space for those files from being available to the filesystem. This effect can be seen by a difference between du and df . While du may show a large amount of free disk space, df will show a full partition. If the defuncts are not cleaned, this can fill the root partition and crash the system.…

Key claims

No claims recorded.

Discussion questions

  1. Summarise the article in your own words. Which single claim would you verify first, and why?
  2. Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
  3. If two sources disagreed about one of these facts, what would you need in order to trust one over the other?

Bibliography

No sources recorded.

Key claims and bibliography are generated from the same tracked claims and sources as the article page.