(lightbulb goes off) Re: sockstat not working
Joerg Sonnenberger
joerg at britannica.bec.de
Wed Feb 2 12:55:07 PST 2005
On Wed, Feb 02, 2005 at 12:34:47PM -0800, Matthew Dillon wrote:
> I think what is going on is that the sysctl code in kern_descrip.c is
> not counting threaded processes (which share their descriptor tables)
> properly.
Ouch. Yeah, we would have to iterate over the filedesc structures and
multiply the reference count there with f_count of the file. But we
can't do that easily and have to iterate over the processes instead.
Which means a multi-threaded webserver kills the *stat performance
just for the counting.
Joerg
More information about the Bugs
mailing list