lkml.org 
[lkml]   [2000]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/nzombies
On Sun, 27 Feb 2000, Ricky Beam wrote:

>"bloat"? It's two lines of code in the process exit path. That adds, what,
>four cpu cylces to process termination? That's not bloat. The price of
>tracking process zombies in the kernel is far, far less than tracking it
>in user land.

It certainly is bloat.

The process exit path is critical--it is called often and every cycle is
important. Take a webserver: It can fork a process per request. Consider
an SMP system: If you write to the same counter repeatedly with all CPUs
you will get cache ping-pong effects which slow you down severely. All
these things have to be considered.

OTOH, counting zombies can be easily done in user space. A monitoring
tool doesn't need to do it more often than, say, once per minute. If it
needs to scan all processes for other purposes as well then counting
zombies is nearly free.

Walter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.468 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site