lkml.org 
[lkml]   [1999]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectre: Max tcp connections
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.070 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site