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

On Thu, 16 Sep 1999 09:50:44 -0400, "Stephen D. Williams" <sdw@lig.net>
said:

> Stephen, or anyone else, are you aware of a test program that
> illustrates the use of existing (2.2.12+) mechanisms to efficiently
> handle many sockets?

Only phhttpd:

http://people.redhat.com/zab/phhttpd/

We probably need a "fastpoll" library to make the overflow handling as
transparent as possible to the application.

> What will slow down at the OS level with many sockets?

Lots of things. tcp connection hash tables will get bigger. Memory use
both by the OS and by the application will grow, so cpu caches will be
less effective.

> Is there a limit to the number of connections per IP address, assuming
> many different client IP's? (In other words, is there any problem
> with running out of local sockets?

No. One local IP address and port can have any number of
remote connections. The theoretical limit is the number of foreign
ipaddress/portnum pairs available. :) The practical limit is physical
memory.

--Stephen



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