Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2008 15:20:02 +0200
From:      Ott =?iso-8859-1?q?K=F6stner?= <ottk@zzz.ee>
To:        freebsd-net@freebsd.org
Subject:   Re: FD_SETSIZE (too many open file descriptors) + BIND
Message-ID:  <200812171520.02823.ottk@zzz.ee>
In-Reply-To: <200812171506.58607.ottk@zzz.ee>
References:  <200812171506.58607.ottk@zzz.ee>

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

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=3Den/n=
ode/204) on my FreeDSD 7.1 box with as many
threads as possible. named seems to limit tha number of Grubng threads I ca=
n run, because of exessive name service usage of web crawler.

I have recompiled bind with  'CFLAGS+=3D  -DFD_SETSIZE=3D4096', but this do=
es not help.

Also, 'sockstat |grep -c named' does now show too big numbers. Namely, arou=
nd 20 with 60 Grubng threads and around 100 with 100 threads (never exeedin=
g 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.



=2D-=20
M=F5=F5da oma inteneti kiirust / Test Your Internet speed
http://speedtest.zzz.ee/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812171520.02823.ottk>