FD_SETSIZE (too many open file descriptors) + BIND

Ott Köstner ottk at zzz.ee
Wed Dec 17 05:37:04 PST 2008


Ferdinand Goldmann wrote:
> > Hi there,
> > 
> > I just upgraded a FreeBSD 6.x machine to FreeBSD 6.3-STABLE, and now I'm 
> > seeing this same problem which has already been reported in different 
> > postings:
> > 
> > named[51769]: socket: too many open file descriptors
> > last message repeated 147 times
> 
> I am following up to my own posting, which was kind of stupid really because I 
> obviously made some mistakes.
> 
> I have now done the following:
> 
> # cd /usr/src/lib/bind
> 
> Edited config.mk:
> CFLAGS+=        -DVERSION='"${BIND_VERSION}"' -DFD_SETSIZE=4096
> 
> recompiled bind library and named according to advisory on freebsd-security:
> 
> # make obj && make depend && make && make install
> # cd /usr/src/usr.sbin/named
> # make obj && make depend && make && make install
> 
> I'm crossing my fingers, but it seems to have done the trick. Monitoring 
> system usage with sockstat, I have seen values of almost up to 1400 being used 
> by named without the 'too many open file descriptors' appearing in the logs.
> 
> Sorry for my slightly nervous previous posting ...
> 
> Regards,
> Ferdinand
> 

Hello List!

I have faced the same kind of problem, and nothing seems to help...

Trying to run Grub Next Generation Python Client (http://grub.org/?q=en/node/204) on my FreeDSD 7.1 box with as many
threads as possible. named seems to limit tha number of Grubng threads I can run, because of exessive name service usage of web crawler.

I have recompiled bind with  'CFLAGS+=  -DFD_SETSIZE=4096', but this does not help.

Also, 'sockstat |grep -c named' does now show too big numbers. Namely, around 20 with 60 Grubng threads and around 100 with 100 threads (never exeeding 1500). But with 100 threads 'named' becomes unresponsive.

Messages appear in the log:

named[63198]: socket: too many open file descriptors
last message repeated 26 times

Bind version is: BIND 9.4.2-P2


Any ideas?


Best regards,
O.K.



-- 
Mõõda oma inteneti kiirust / Test Your Internet speed
http://speedtest.zzz.ee/


More information about the freebsd-net mailing list