From owner-freebsd-net@FreeBSD.ORG Wed Dec 17 13:37:04 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71F811065670 for ; Wed, 17 Dec 2008 13:37:04 +0000 (UTC) (envelope-from ottk@zzz.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id 2D07C8FC13 for ; Wed, 17 Dec 2008 13:37:03 +0000 (UTC) (envelope-from ottk@zzz.ee) Received: from zzz.ee (localhost.zzz.ee [127.0.0.1]) by zzz.ee (Postfix) with ESMTP id 389BDFD3B9 for ; Wed, 17 Dec 2008 15:20:07 +0200 (EET) Received: by zzz.ee (Postfix, from userid 3019) id 34C07FD3B7; Wed, 17 Dec 2008 15:20:07 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from ott.sise (adsl215.uninet.ee [194.204.62.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zzz.ee (Postfix) with ESMTPS id CD0ABFD3A0 for ; Wed, 17 Dec 2008 15:20:03 +0200 (EET) From: Ott =?iso-8859-1?q?K=F6stner?= To: freebsd-net@freebsd.org Date: Wed, 17 Dec 2008 15:20:02 +0200 User-Agent: KMail/1.9.10 References: <200812171506.58607.ottk@zzz.ee> In-Reply-To: <200812171506.58607.ottk@zzz.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200812171520.02823.ottk@zzz.ee> X-Virus-Scanned: ClamAV using ClamSMTP @zzz.ee Subject: Re: FD_SETSIZE (too many open file descriptors) + BIND X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 13:37:04 -0000 =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/