Linux-kernel mailing list archive 1999-37,: Re: > 15K simultaneous connections EXAMPLE program/OS config needed, was:

# Re: > 15K simultaneous connections EXAMPLE program/OS config needed, was:

Stephen C. Tweedie (sct@redhat.com)
Fri, 17 Sep 1999 15:38:39 +0100 (BST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Erik Mouw: "Re: unsupported (?) network card based on W89C906 chipset from Winbon d ?"
- Previous message: Andrea Arcangeli: "[patch] stime/settimeofday/adjtimex SMP races (2.2.12 and 2.3.18ac5)"

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/

- Next message: Erik Mouw: "Re: unsupported (?) network card based on W89C906 chipset from Winbon d ?"
- Previous message: Andrea Arcangeli: "[patch] stime/settimeofday/adjtimex SMP races (2.2.12 and 2.3.18ac5)"