From owner-freebsd-net Fri Sep 28 23:35:18 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail.nsu.ru (b.ns.ssc.nsu.ru [193.124.215.221]) by hub.freebsd.org (Postfix) with ESMTP id 4FA3837B403 for ; Fri, 28 Sep 2001 23:35:11 -0700 (PDT) Received: from iclub.nsu.ru ([193.124.222.66] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 15nDi7-0005A4-00; Sat, 29 Sep 2001 13:34:51 +0700 Received: (from fjoe@localhost) by iclub.nsu.ru (8.11.4/8.11.4) id f8T6YoQ44069; Sat, 29 Sep 2001 13:34:50 +0700 (NSS) (envelope-from fjoe) Date: Sat, 29 Sep 2001 13:34:49 +0700 From: Max Khon To: Nguyen-Tuong Long Le Cc: freebsd-net@FreeBSD.ORG Subject: Re: FD_SETSIZE Message-ID: <20010929133448.A43884@iclub.nsu.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from le@cs.unc.edu on Fri, Sep 28, 2001 at 09:30:33PM -0400 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 hi, there! On Fri, Sep 28, 2001 at 09:30:33PM -0400, Nguyen-Tuong Long Le wrote: > 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. you don't need to recompile kernel. just recompile your web server software with -DFD_SETSIZE=xxx /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message