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

看板DFBSD_bugs作者時間21年前 (2005/02/03 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
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
文章代碼(AID): #120J-O00 (DFBSD_bugs)
文章代碼(AID): #120J-O00 (DFBSD_bugs)