lkml.org 
[lkml]   [1999]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: > 15K simultaneous connections EXAMPLE program/OS config needed, was: Re: POSIX aio vs completion ports
Arjan van de Ven wrote:

> Dan Kegel had the wisdom to write:
> DK> Guess I should rename my page c100k.html :-)
>
> DK> Alan recently said that each handle takes up 20k in kernel space.
> DK> so 100,000 connections could take up 100k*20k = 2GB of RAM,
> DK> which might cause some trouble except on very recent kernels
> DK> (and maybe you still need a patch for this).
>
> Even worse, it would require > 64K ports for TCP/IP, and that is not
> possible...

Oops, silly me. I replied too quick. Nowhere does it say the 100K connections
would be outgoing. If its a server it only requires one port for 100K
incoming connections. In fact, even if these are 100K outgoing connections
you can still use just one port, providing they all go to different ports
somewhere else - it just isn't common practice to do so. Only the combination
of source IP, source port, destination IP and destination port must be
unique.

Steve



-
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.079 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site