From owner-freebsd-net@FreeBSD.ORG Tue Jul 22 19:09:21 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 E5ECA1065681 for ; Tue, 22 Jul 2008 19:09:21 +0000 (UTC) (envelope-from ferdinand.goldmann@jku.at) Received: from emailsecure.uni-linz.ac.at (emailsecure.uni-linz.ac.at [140.78.3.66]) by mx1.freebsd.org (Postfix) with ESMTP id AFA3D8FC12 for ; Tue, 22 Jul 2008 19:09:21 +0000 (UTC) (envelope-from ferdinand.goldmann@jku.at) Received: from [81.10.209.143] (cm209-143.liwest.at [81.10.209.143]) by emailsecure.uni-linz.ac.at (Postfix) with ESMTP id ACD77228022 for ; Tue, 22 Jul 2008 21:09:20 +0200 (CEST) Message-ID: <48863060.10909@jku.at> Date: Tue, 22 Jul 2008 21:09:20 +0200 From: Ferdinand Goldmann Organization: Johannes Kepler University User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <487C9457.5080609@bsdunix.ch> <2A7CBD67-7532-4B13-82DD-A6EF5DEAA6BD@bsdunix.ch> <48861525.5060104@jku.at> In-Reply-To: <48861525.5060104@jku.at> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FD_SETSIZE (too many open file descriptors) + BIND X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ferdinand.goldmann@jku.at List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 19:09:22 -0000 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