Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2001 01:39:04 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Nguyen-Tuong Long Le <le@cs.unc.edu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: FD_SETSIZE
Message-ID:  <3BB588A8.C9ED7512@elischer.org>
References:  <Pine.LNX.4.32.0109282129490.1971-100000@le-cs.cs.unc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BB588A8.C9ED7512>