 evilghostPremium join:2003-11-22 Springville, AL | reply to justin
Re: maximum number of open sockets, files, threads, etc..? Max num of connections is handled by /proc/sys/net/core/optmem_max |
|
 justinAustralian join:1999-05-28 New York, NY kudos:7 Host: IPv6 Business Connectiv.. Console/Handheld g.. Home/Office setup .. Photos of Broadban..
| said by evilghost:Max num of connections is handled by /proc/sys/net/core/optmem_max Nope: »www.linuxinsight.com/proc_sys_ne···max.html |
|
 evilghostPremium join:2003-11-22 Springville, AL 1 edit | Yep: »linux.die.net/man/3/cmsg
Insufficient optmem results in failure to bind socket. tcp_rmem, net.core.rmem_max, net.core.wmem_max, and tcp_wmem also control socket allocation. |
|
|
|
 justinAustralian join:1999-05-28 New York, NY kudos:7 | that is ancillary memory per socket. The maximum number that can be open on a machine is capped by maximum FDs (an fd is a 16 bit number, right?), not total memory taken by all sockets. |
|
 davePremium,MVM join:2000-05-04 not in ohio kudos:8 | Yeah, but fds are per-process indexes into a per-process table. |
|
 justinAustralian join:1999-05-28 New York, NY kudos:7 Host: IPv6 Business Connectiv.. Console/Handheld g.. Home/Office setup .. Photos of Broadban..
| ok, so you can set it to whatever you want for the box by echoing into file-max. So the theory limit is 1024x1024 (memory willing?) fds?
#define NR_OPEN (1024*1024) /* Absolute upper limit on fd num */ #define INR_OPEN 1024 /* Initial setting for nfile rlimits */ |
|