From owner-freebsd-net@FreeBSD.ORG Tue Jul 15 21:18:41 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 BF712106567E; Tue, 15 Jul 2008 21:18:41 +0000 (UTC) (envelope-from Jinmei_Tatuya@isc.org) Received: from mon.jinmei.org (mon.jinmei.org [IPv6:2001:4f8:3:36::162]) by mx1.freebsd.org (Postfix) with ESMTP id A62A78FC1D; Tue, 15 Jul 2008 21:18:41 +0000 (UTC) (envelope-from Jinmei_Tatuya@isc.org) Received: from jmb.jinmei.org (unknown [IPv6:2001:4f8:3:bb:217:f2ff:fee0:a91f]) by mon.jinmei.org (Postfix) with ESMTP id 411A633C2E; Tue, 15 Jul 2008 14:18:41 -0700 (PDT) Date: Tue, 15 Jul 2008 14:18:41 -0700 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Kris Kennaway In-Reply-To: <487D120A.6010001@FreeBSD.org> References: <487C9457.5080609@bsdunix.ch> <2A7CBD67-7532-4B13-82DD-A6EF5DEAA6BD@bsdunix.ch> <487D120A.6010001@FreeBSD.org> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-net@freebsd.org, Thomas Vogt Subject: Re: too many open file descriptors messages since bind 9.4.2-P1 (port dns94) 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: Tue, 15 Jul 2008 21:18:41 -0000 At Tue, 15 Jul 2008 23:09:30 +0200, Kris Kennaway wrote: > > If that's regularly happening, I'm afraid recent P1 versions don't > > handle that well, and recommend you try 9.4.3b2 ore 9.5.1b1. > > Or increase the number of file descriptors as a workaround, per my email :) Does FreeBSD allow an application to increase FD_SETSIZE (at its compilation time)? I thought FD_SETSIZE defaults to 1024. Any 9.x.y-P1 versions can only open FD_SETSIZE sockets, regardless of the # FDs limit. Besides, I guess that the P1 versions severely suffer from heavy overhead of select(2) when it regularly opens more than 1000 sockets. Even if 'too many open file' messages are gone, many users won't accept the increased load due to the overhead. Beta versions use kqueue, eliminating the fundamental overhead as well as the (too low) limitation of # of descriptors. --- JINMEI, Tatuya Internet Systems Consortium, Inc.