re: Max tcp connections

Dan Kegel (dank@alumni.caltech.edu)
Wed, 10 Nov 1999 18:13:31 -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

-- 
(The above is just my personal opinion; I don't speak for my employer,
 except on the occasional talk show.)

- 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/