Re: Increaseing the number of connections

Tim Ricketts (tr@oxlug.org)
Thu, 5 Aug 1999 11:41:41 +0100 (GMT)


On Wed, 4 Aug 1999, stuart wrote:

> Hello Im hoping somebody can help on this one. Im trying to increase the number
> of connections on a linux box. As far as I am aware (but I could be wrong im
> new to this) you can get 128 connections, Im trying to increase this to either,
> 512 or 1024. I've gone through socket.h , socketbits.h ,
> task.h for the number of processes , sem.h. After that I can't seem to find
> anymore information and myt system falls over around 255 connections or 376
> 255 over tcp/ip connection and 376 local. This is on a 2.2.10 kernel. Anybody
> know which files i have missed? ANy help would be greatly appriciated as I've
> been banging my head of the desk for a week now =)

Well, for TCP connections, this looks relevant (include/net/tcp.h:26):
/* This is for all connections with a full identity, no wildcards.
* New scheme, half the table is for TIME_WAIT, the other half is
* for the rest. I'll experiment with dynamic table growth later.
*/
#define TCP_HTABLE_SIZE 512

so I'd have thought you ought to get 256.

-- 
Tim
Quidquid latine dictum sit, altum viditur.

- 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/