From owner-freebsd-net@FreeBSD.ORG Tue Jul 15 22:39:10 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 158361065670; Tue, 15 Jul 2008 22:39:10 +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 ED8898FC17; Tue, 15 Jul 2008 22:39:09 +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 B4E5E33C2E; Tue, 15 Jul 2008 15:39:09 -0700 (PDT) Date: Tue, 15 Jul 2008 15:39:09 -0700 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Bakul Shah In-Reply-To: <20080715221231.E087C5B46@mail.bitblocks.com> References: <20080715221231.E087C5B46@mail.bitblocks.com> 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, Kris Kennaway , 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 22:39:10 -0000 At Tue, 15 Jul 2008 15:12:31 -0700, Bakul Shah wrote: > > 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. > > Or more portably you can use poll(2). I've not played with poll(2) in BIND9, but as far as I understand it, it doesn't solve the fundamental overhead issue here. For example, the application should examine all possible descriptors even if only a few of them are readable. Anyway, since this is a FreeBSD specific list, I believe we can safely assume the existence of kqueue, unless we are talking about a very old version:-) --- JINMEI, Tatuya Internet Systems Consortium, Inc.