看板 DFBSD_bugs 關於我們 聯絡資訊
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