Date: Fri, 28 Sep 2001 22:23:34 -0500 (CDT) From: Jonathan Lemon <jlemon@flugsvamp.com> To: le@cs.unc.edu, net@freebsd.org Subject: Re: FD_SETSIZE Message-ID: <200109290323.f8T3NYN09661@prism.flugsvamp.com> In-Reply-To: <local.mail.freebsd-net/Pine.LNX.4.32.0109282129490.1971-100000@le-cs.cs.unc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <local.mail.freebsd-net/Pine.LNX.4.32.0109282129490.1971-100000@le-cs.cs.unc.edu> you write: >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. No need to recompile the kernel. Add a #define FD_SETSIZE to your program, *before* <sys/types.h>, and recompile your application. And you probably really want to check out kqueue(2). -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109290323.f8T3NYN09661>