RE: Max tcp connections

David Schwartz (davids@webmaster.com)
Thu, 11 Nov 1999 16:16:41 -0800


> Raiden <raiden@arrakis.es> asked:
>
> > I think limit is defined using FD_SETSIZE actualy, now it's my question:
> >
> > - how can i change the max value allowed of tcp connection ?
> > - am i thinking bad if i think 256 is the limit of the max tcp
> connections
> > allowed simulta...?
> >
> > It's a bit urgent ... could any reply me quick about this one?
>
> FD_SETSIZE only controls how big the fd_set used by select()
> can be; there are other limits.
> For info about the limits on file descriptors and how to raise them,
> see http://www.kegel.com/c10k.html
> Depending on what kernel and what program, it might be as easy as
> echo 32768 > /proc/sys/fs/file-max
> echo 65536 > /proc/sys/fs/inode-max
> and then, for the process in question,
> ulimit -n 32768
> - Dan

Since you can neither select nor poll on 32,768 sockets, it would be
somewhat difficult to use this man.

DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/