From owner-freebsd-net@FreeBSD.ORG Tue Jun 14 21:19:18 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AA5016A41C for ; Tue, 14 Jun 2005 21:19:18 +0000 (GMT) (envelope-from silby@silby.com) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 17D7043D1F for ; Tue, 14 Jun 2005 21:19:17 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 82410 invoked from network); 14 Jun 2005 21:19:16 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 14 Jun 2005 21:19:16 -0000 X-pair-Authenticated: 209.68.2.70 Date: Tue, 14 Jun 2005 16:19:01 -0500 (CDT) From: Mike Silbersack To: "PSI, Mike Smith" In-Reply-To: <06e401c570e2$3f342930$1b321d80@MITRE.ORG> Message-ID: <20050614161717.M8134@odysseus.silby.com> References: <06e401c570e2$3f342930$1b321d80@MITRE.ORG> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: Advice needed on running idiotic test for client X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 21:19:18 -0000 On Tue, 14 Jun 2005, PSI, Mike Smith wrote: > Idiot test requested by client - Same as above but see how fast 10,000 > can be sent (will never come close to happening in the real world). > > Problem: Because among other things I am using let's say minimal and > ancient computer power, I hit a DOS state after about 3700 connects. I > know (think?) I am running out of mbufs because of the 2MSL delay on the > close. > > Is there any way to close a TCP connection and have all resources > immediately freed? I KNOW this is really violating all the data > integrity features of TCP, but this is an idiotic test remember. And in > this case I am not concerned about data integrety. I have noticed that > LINUX has a TCP_LINGER2 option that can at least minimize the closing > delay (freeing resources) but I haven't found anything comparable in > FreeBSD. Are the TIME_WAIT sockets building up on the client or the server? 5.x has some features so that it does not allow too many TIME_WAIT sockets to build up beyond a certain threshold, but if you're using 4.x we can still tweak some sysctl values to achieve the effect you want. Mike "Silby" Silbersack