Issue with huge numbers of connections

Peter Jeremy peterjeremy at optushome.com.au
Sun Jun 17 19:37:17 UTC 2007


On 2007-Jun-17 13:02:38 -0600, "M. Warner Losh" <imp at bsdimp.com> wrote:
>Doing the math on 10^9 connections in a week translates to ~1650/s, so we'd
>expect there are on the order of 100-200 connections steady state at any
>time.  I suspect that the peak load may be up to 100 times that, which is
>still only 20000 connections.  The hangs don't seem to hang at a peak, but
>randomly.

Note that the TCP state machine includes a 2xMSL (128 second) timeout
after the connection closes before the kernel releases the TCP control
block.  There may not be many connections open but at 1650 connections
per second, there are about 200,000 control blocks in TCPS_TIME_WAIT -
far more if the load is peaky.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20070617/7659adcf/attachment.pgp


More information about the freebsd-net mailing list