<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Topic &#x27;Re: maximum number of open sockets, files, threads, etc..?&#x27; in forum &#x27;All Things Unix&#x27; - dslreports.com</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20368916</link>
<description></description>
<language>en</language>
<pubDate>Sun, 19 May 2013 09:09:10 EDT</pubDate>
<lastBuildDate>Sun, 19 May 2013 09:09:10 EDT</lastBuildDate>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20789848</link>
<description><![CDATA[xargs posted : <div class="bquote"><small>said by <a href="/profile/1" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=1');">justin</a>:</small><br><br>you might want 100k simultaneous open tcp conversations. It isn't clear to me why this should be so difficult if the majority of the open conversations were idle.</div>I'm working on a server that has just those requirements.  It does appear that there's a 64K per-process open file limit, though I can't find any documentation to that effect. It's not a system-wide limit -- clients can open 64K connections into the server process from the same machine, giving 128K total open files:<br><pre class="brush: text">$ cat /proc/sys/fs/file-nr&#012;135360  0       296295&#012; &#012;</pre><!--end code block-->A call to getrlimit(RLIMIT_NOFILE) tells me the per-process limit is 250,000 (that's how I've configured it in /etc/security/limits.conf) but I can't seem to actually achieve that many open connections.<br><br>Have you found any information that this limit can be increased?<br>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20789848</guid>
<pubDate>Mon, 14 Jul 2008 14:55:04 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377945</link>
<description><![CDATA[justin posted : dammit .. now I read some more about nginx, I want to change our front end. Which means converting a bunch of ReWrite rules, testing and so on and so forth.<br><br>But since it offers proper limits per simultaneous IP and such huge scalability and such immense capacity for KeepAlive and open but quiet connections, I can't see why to stick with apache2]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377945</guid>
<pubDate>Thu, 24 Apr 2008 02:24:30 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377922</link>
<description><![CDATA[justin posted : I like this part:<br><br> <blockquote><small>quote:</small><hr>Because web connections aren&#146;t as long lived as IMAP connections, we stayed with Apache for our frontends for a while longer. However we&#146;ve now switched over to using nginx for our frontend web proxy as well, <b>which has also allowed us to increase the keep-alive timeout for HTTP connections to 5 minutes</b>, which should result in a small perceptible improvement when moving between pages.<br><br>The net result of all this is that each frontend proxy server currently maintains over 10,000 simultaneous IMAP, POP, Web & SMTP connections (including many SSL ones) using only about 10% of the available CPU on 3.20GHz Netburst Xeon based CPUs.<hr></blockquote><br><br>nginx seems to have done it right: a small amount of processes each using epoll. If the kernel doesn't waste a whole heap of memory with each open connection, this would scale really well.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377922</guid>
<pubDate>Thu, 24 Apr 2008 02:14:14 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377871</link>
<description><![CDATA[shdesigns posted : <div class="bquote"><small>said by <a href="/profile/340145" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=340145');">Steve</a>:</small><br><br>Can TX and RX buffer sizes be tuned separately? I would think that for web-type service, maxing out the TX buffer and minimizing the RX buffer would make a big diff in scaling.<br><br>If they can't be, then this smells like a great optimization to add to the kernel.<br><br>Steve<br> </div>/proc/sys/net/ipv4:<br><br>tcp_rmem - 4096    87380   16777216<br>tcp_wmem - 4096    87380   16777216<br>tcp_mem - 98304   131072  196608<br><br>I think those are min/default/max<br><br>edit: I bet Apache opens sockets with its own settings.<br><small>--<br>Scott Henion<br><br>Embedded Systems Consultant, shenion on #ATU @irc.freenode.net <br><A HREF="http://shdesigns.org">SHDesigns home</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377871</guid>
<pubDate>Thu, 24 Apr 2008 01:49:49 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377851</link>
<description><![CDATA[BeesTea posted : <div class="bquote"><small>said by <a href="/profile/923631" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=923631');">cvig</a>:</small><br><br>nginx is another interesting HTTP server <br> </div>Unrelated to the thread topic, but of interest.<br><br>This happens to have been the HTTPd of choice of the authors of stormworm, the much discussed malware.  It's in fact so unique, many vendors chose to trigger IDS on its banner.<br><br>For example:<A HREF="http://tools.cisco.com/security/center/viewIpsSignature.x?signatureId=5894&signatureSubId=0&softwareVersion=6.0&releaseVersion=S299">Cisco Intellishield</a><br><br>Edit: <A HREF="http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9079653">Changed tense<br><small>--<br>Overpower, overcome.</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377851</guid>
<pubDate>Thu, 24 Apr 2008 01:40:43 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377736</link>
<description><![CDATA[Steve posted : <div class="bquote"><small>said by <a href="/profile/252734" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=252734');">shdesigns</a>:</small><br><br> Each socket may gave 256k TX and RX buffers (seems to be default minimum) with file descriptors allocated also.</div> Can TX and RX buffer sizes be tuned separately? I would think that for web-type service, maxing out the TX buffer and minimizing the RX buffer would make a big diff in scaling.<br><br>If they can't be, then this smells like a great optimization to add to the kernel.<br><br>Steve<br><small>--<br>Stephen J. Friedl | Unix Wizard | Microsoft Security MVP | Tustin, California USA | <A HREF="http://www.unixwiz.net">my web site</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377736</guid>
<pubDate>Thu, 24 Apr 2008 00:57:36 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377381</link>
<description><![CDATA[justin posted : It is a good point.<br><br>65k open sockets with 128k rmem and wmem buffers take 8.3gb<br><br>But things might not be that bad inside the kernel. Perhaps the space is only taken if it is needed:<br><br>A paper was published <br>&raquo;<A HREF="http://www.stdlib.net/~colmmacc/Apachecon-EU2005/scaling-apache-handout.pdf" >www.stdlib.net/~colmmacc/Apachec&middot;&middot;&middot;dout.pdf</A><br><br>that showed off an ftp server whose record was 27,000 simultaneous downloads (under apache). And there rmem_default/rmem_max was 262k. The machine has 4gb of ram.<br><br>Unless my math is faulty, that SHOULD take 7gb of ram for read socket buffers alone (rmem_default). But clearly it didn't.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377381</guid>
<pubDate>Wed, 23 Apr 2008 23:16:52 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377300</link>
<description><![CDATA[shdesigns posted : As memory is allocated per socket the limit of the # of sockets is probably moot.<br><br>Each socket may gave 256k TX and RX buffers (seems to be default minimum) with file descriptors allocated also. Thousands of sockets and threads would consume more memory than you have and probably thash so hard the limit of the # of sockets would probably be the least of your worries.<br><br>Given the 1024*1024 you mentioned and the probable 64k minimum buffer on a TCP sliding window socket that is 64gigs or RAM.<br><br>Gobs of RAM and 64-bit may reach the limits. I bet few are getting close to this in practice so few developers consider them.<br><small>--<br>Scott Henion<br><br>Embedded Systems Consultant, shenion on #ATU @irc.freenode.net <br><A HREF="http://shdesigns.org">SHDesigns home</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377300</guid>
<pubDate>Wed, 23 Apr 2008 23:04:14 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377289</link>
<description><![CDATA[cvig posted : nginx is another interesting HTTP server -- on their website they claim 10,000 inactive HTTP keep-alive connections consume only 2.5M. From the LKML thread though it sounds like the real limitation is 32-bit with 8K stack. If you go 64-bit a lot of the limitations will be eased (at least in terms of max threads).<br><br>&raquo;<A HREF="http://nginx.net/" >nginx.net/</A><br><br>This sounds like the ideal time to bring up ideas of making a test program :).]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377289</guid>
<pubDate>Wed, 23 Apr 2008 23:00:36 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377170</link>
<description><![CDATA[justin posted : no, and you are right. "it depends".<br><br>I think the kernel gods like to say that as you approach large numbers you "aren't doing things right", so they get less interested in the answers.<br><br>So if the current practical maximum number of threads is, say, 32000 .. it is of no interest to them that this is hard  to achieve because no properly written application should require that many threads.<br><br>The issue of maximums comes up more often than it should because future web servers will need to handle 100,000+ concurrent connections. Apache still has one foot in the past and needs one process or thread per open connection. Lighttpd is a single process single thread and uses epoll() so appears to be limited by the maximum number of open file descriptors per process (which to me says it is till capped at 65k?).<br><br>"Comet" which is the next generation of "Ajax", requires a quantum leap on number of concurrent connections. Instead of Ajax scripts on each browser polling for answers, they want to hold open a connection, and get events. This is very useful for lots of things: dynamic displays of data, chat .. anything that changes can now change immediately yet take no resources in polling when there are no changes to be made. Such a more logical way of doing things. Google is already using it all over: google chat, finance.google.com for example.<br><br>But of course "comet" needs a web infrastructure (front end servers, load balancers, routers, firewalls, web servers, application servers) that is much better at far more simultaneously open connections.<br><br>And funnily enough it becomes a lot easier to handle denial of service attacks as well: something that can handle 100k+ open connections can easily limit to a few per IP address, and easily identify and kill ones that misbehave. Half of a good denial of service attack is to try to open too many active connections and hold them (the other half is flooding).]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20377170</guid>
<pubDate>Wed, 23 Apr 2008 22:36:48 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20375198</link>
<description><![CDATA[cvig posted : Have you been following this:<br><br>&raquo;<A HREF="http://kerneltrap.org/Linux/Defaulting_To_4K_Stacks" >kerneltrap.org/Linux/Defaulting_To_4K_Stacks</A><br><br>If so, it's clear that a lot of these limits are "it depends". 64 bit or 32 bit? Etc... There is some good information there within the lkml thread on the page if you read between the main points.<br><br>It is surprising that the theoretical limits aren't discussed more -- it would be interesting to see some tests with the smallest possible thread size one could maintain to see the max number of threads in practice.<br><br>Have you found any concrete answers yet to any of your questions?]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20375198</guid>
<pubDate>Wed, 23 Apr 2008 16:03:24 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369527</link>
<description><![CDATA[justin posted : 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?<br><br>#define NR_OPEN (1024*1024)     /* Absolute upper limit on fd num */<br>#define INR_OPEN 1024           /* Initial setting for nfile rlimits */ ]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369527</guid>
<pubDate>Tue, 22 Apr 2008 16:17:32 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369470</link>
<description><![CDATA[dave posted : Yeah, but fds are per-process indexes into a per-process table.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369470</guid>
<pubDate>Tue, 22 Apr 2008 16:05:54 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369444</link>
<description><![CDATA[justin posted : 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.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369444</guid>
<pubDate>Tue, 22 Apr 2008 16:00:50 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369417</link>
<description><![CDATA[evilghost posted : <div class="bquote"><small>said by <a href="/profile/1" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=1');">justin</a>:</small><br><br><div class="bquote"><small>said by <a href="/profile/902719" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=902719');">evilghost</a>:</small><br><br>Max num of connections is handled by /proc/sys/net/core/optmem_max<br> </div>Nope:<br>&raquo;<A HREF="http://www.linuxinsight.com/proc_sys_net_core_optmem_max.html" >www.linuxinsight.com/proc_sys_ne&middot;&middot;&middot;max.html</A><br> </div>Yep:<br>&raquo;<A HREF="http://linux.die.net/man/3/cmsg" >linux.die.net/man/3/cmsg</A><br><br>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.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369417</guid>
<pubDate>Tue, 22 Apr 2008 15:54:22 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369209</link>
<description><![CDATA[justin posted : <div class="bquote"><small>said by <a href="/profile/902719" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=902719');">evilghost</a>:</small><br><br>Max num of connections is handled by /proc/sys/net/core/optmem_max<br> </div>Nope:<br>&raquo;<A HREF="http://www.linuxinsight.com/proc_sys_net_core_optmem_max.html" >www.linuxinsight.com/proc_sys_ne&middot;&middot;&middot;max.html</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369209</guid>
<pubDate>Tue, 22 Apr 2008 15:13:33 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369206</link>
<description><![CDATA[justin posted : those are current max numbers, and they can be changed.<br><br>I'm after what the real upper limits actually are.<br><br>eg, from my lkml topic it seems that max number of processes (or threads) is 65k, and potentially 128k but then /proc blows up.<br><br>So presumably 65k open files (and therefore sockets) is a hard limit everywhere.<br><br>There are interesting implications. No you would not want 40k threads, or 40k processes, but you might want 100k simultaneous open tcp conversations. It isn't clear to me why this should be so difficult if the majority of the open conversations were idle.<br><br>Yet it appears to be an impossible task. Even on a 64bit machine with a whole pile of memory.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369206</guid>
<pubDate>Tue, 22 Apr 2008 15:11:58 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369187</link>
<description><![CDATA[evilghost posted : Max num of connections is handled by /proc/sys/net/core/optmem_max]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369187</guid>
<pubDate>Tue, 22 Apr 2008 15:08:25 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369169</link>
<description><![CDATA[justin posted : I've been googling for a while and the answers are unclear otherwise I wouldn't bother posting here.<br><br>In part because (for threads) it depends on the stack size you limit things to. For fds and sockets wanting more than 65k (especially per process, but per maybe per machine) is a very specialized thing.<br><br>Even this topic (on max threads) came to an uncertain resolution:<br><br>&raquo;<A HREF="http://lkml.org/lkml/2006/8/15/222" >lkml.org/lkml/2006/8/15/222</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369169</guid>
<pubDate>Tue, 22 Apr 2008 15:05:00 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369152</link>
<description><![CDATA[evilghost posted : <div class="bquote"><small>said by <a href="/profile/1" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=1');">justin</a>:</small><br><br>I know that, but 'unlimited' actually isn't. So I'm after the real upper limits determined by kernel design ...<br> </div>Ok, use this approach:<br><br><pre class="brush: text">#Maximum number of open files:&#012;cat /proc/sys/fs/file-max  &#012; &#012;#Allocated, free allocated, and max FDs:&#012;cat /proc/sys/fs/file-nr  &#012; &#012;#Max threads:&#012;cat /proc/sys/kernel/threads-max&#012; &#012;#Max half-open TCP:&#012;cat /proc/sys/net/core/somaxconn&#012; &#012;</pre><!--end code block-->]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369152</guid>
<pubDate>Tue, 22 Apr 2008 15:03:07 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369100</link>
<description><![CDATA[sporkme posted : UTSL!<br><br>Additionally, I'm sure one of the distros with good docs (Gentoo??) must have stuff like this spelled out somewhere.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369100</guid>
<pubDate>Tue, 22 Apr 2008 14:51:33 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369086</link>
<description><![CDATA[justin posted : I know that, but 'unlimited' actually isn't. So I'm after the real upper limits determined by kernel design ...]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20369086</guid>
<pubDate>Tue, 22 Apr 2008 14:49:36 EDT</pubDate>
</item>

<item>
<title>Re: maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20368969</link>
<description><![CDATA[evilghost posted : Limits can be enforced using /etc/security/limits.conf but I'm not sure that's what you're asking.<br><br>Ulimit is probably what you're looking for...<br><pre class="brush: text">ulimit -a&#012; &#012;</pre><!--end code block--><br>Or optionally, a manual approach:<br><pre class="brush: text">Maximum number of open files: cat /proc/sys/fs/file-max&#012;Allocated, free allocated, and max FDs:  cat /proc/sys/fs/file-nr&#012; &#012;</pre><!--end code block-->]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-maximum-number-of-open-sockets-files-threads-etc-20368969</guid>
<pubDate>Tue, 22 Apr 2008 14:28:05 EDT</pubDate>
</item>

<item>
<title>maximum number of open sockets, files, threads, etc..?</title>
<link>http://www.dslreports.com/forum/maximum-number-of-open-sockets-files-threads-etc-20368916</link>
<description><![CDATA[justin posted : It is surprisingly hard to get accurate information on this.<br><br>My question is pretty simple. What are the global (machine wide) upper limits assuming all tweaking, for number of open FDs, number of open tcp (or udp) sockets, number of active threads.<br><br>I'm aware of some limits. For example, a small stack is needed to create lots of threads and then the machine won't let me create more than 25k threads (over 3 processes).<br><br>I don't think you can have more than 65k open FDs (globally?), at the least because it is a 16 bit quantity? and if you can't have more than 65k open FDs you can't have more than 65k open sockets either.. or (FDs+Sockets must total 65k) or something..<br><br>64 bit linux, machines with 65gb of memory: are these limits still the same?]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/maximum-number-of-open-sockets-files-threads-etc-20368916</guid>
<pubDate>Tue, 22 Apr 2008 14:17:38 EDT</pubDate>
</item>

</channel>
</rss>
