DragonFly BSD
DragonFly bugs List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: (lightbulb goes off) Re: sockstat not working


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 2 Feb 2005 21:53:55 +0100
Mail-followup-to: bugs@crater.dragonflybsd.org

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]