From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaspar Chilingarov Subject: Re: PROBLEM: Linux kernel 2.6.31 IPv4 TCP fails to open huge amount of outgoing connections (unable to bind ... ) Date: Wed, 21 Apr 2010 04:20:11 +0500 Message-ID: References: <4BCE33B9.8050101@candelatech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev To: Ben Greear Return-path: Received: from mail-bw0-f225.google.com ([209.85.218.225]:51547 "EHLO mail-bw0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752638Ab0DTXUN convert rfc822-to-8bit (ORCPT ); Tue, 20 Apr 2010 19:20:13 -0400 Received: by bwz25 with SMTP id 25so7436508bwz.28 for ; Tue, 20 Apr 2010 16:20:12 -0700 (PDT) In-Reply-To: <4BCE33B9.8050101@candelatech.com> Sender: netdev-owner@vger.kernel.org List-ID: Opening that amount of incoming connections in not a problem at all. I'm speaking of outgoing connections. What kind of hack do you have on your kernel? Thanks in advance, Gaspar 2010/4/21 Ben Greear : > On 04/20/2010 03:17 PM, Gaspar Chilingarov wrote: > >> I would be grateful for hints where to look in the source -- may be = I >> can produce some working patches for it. > > I've opened 40,000 connections to/from my machine (over external inte= rfaces) > on a slightly hacked .31 kernel. =C2=A0This is 80,000 sockets total. = =C2=A0I bind > to local IP and port range, as well as SO_BINDTODEVICE. > > I'm using a 64-bit system with 12GB of RAM, quad-core i7 3.3Ghz, etc. > > It takes a lot of RAM to do this but you can probably use less RAM in > user-space > than I am. =C2=A0Be sure to set your socket buffer sizes small. > > Thanks, > Ben > > > -- > Ben Greear > Candela Technologies Inc =C2=A0http://www.candelatech.com >