From owner-freebsd-net Sat Sep 29 1:44:12 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id EDA8337B408 for ; Sat, 29 Sep 2001 01:44:08 -0700 (PDT) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id CAA74605; Sat, 29 Sep 2001 02:36:39 -0700 (PDT) Message-ID: <3BB588A8.C9ED7512@elischer.org> Date: Sat, 29 Sep 2001 01:39:04 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Nguyen-Tuong Long Le Cc: freebsd-net@freebsd.org Subject: Re: FD_SETSIZE References: Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nguyen-Tuong Long Le wrote: > > Hi, > > I am wondering what is the side effects of increasing FD_SETSIZE > beyond 1024? Our group have a propiertary web server software that > handles a large number of sockets. While increasing the kern.maxfiles > and kern.maxfilesperproc gives our web server more connections, > select() seems to fail if the descriptor is beyond 1024. > > Can I just increase FD_SETSIZE and recompile the kernel? I saw > some magic numbers in kern/sys_generic.c and am not sure whether > there are some side effects. > > Thanks, > Long > > P.S. Please kindly email me because I am not in the list. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message it can be extended safely, but you'll get better performance if you write a version for FreeBSD to use kqueue instead.. -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message