From owner-freebsd-net@FreeBSD.ORG Tue Jul 22 17:44:46 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 361B6106567A for ; Tue, 22 Jul 2008 17:44:46 +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 F15C48FC19 for ; Tue, 22 Jul 2008 17:44:45 +0000 (UTC) (envelope-from ferdinand.goldmann@jku.at) Received: from dyn006158.edvz.uni-linz.ac.at (dyn006158.edvz.uni-linz.ac.at [140.78.6.158]) by emailsecure.uni-linz.ac.at (Postfix) with ESMTP id 752D9228022 for ; Tue, 22 Jul 2008 19:13:09 +0200 (CEST) Message-ID: <48861525.5060104@jku.at> Date: Tue, 22 Jul 2008 19:13:09 +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> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 17:44:46 -0000 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 Obvously it is hitting the 1024 limit: # sockstat |grep -c named 979 I tried recompiling BIND with -DFD_SETSIZE=4096 by adding it to the CFLAGS in /usr/src/usr.sbin/named/Makefile, doing a make cleandepend; make depend; make named; and installing the new named binary in /usr/sbin. So far, the annoying limit still seems to be there. Am I missing something? So, in short: How can one raise the @@#$!## limit of FD_SETSIZE in FreeBSD? Is it still necessary to recompile the kernel, too, as some ancient postings I found suggest? TIA & regards, Ferdinand