From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 21 10:26:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55B7B37B401; Mon, 21 Apr 2003 10:26:28 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9837043F85; Mon, 21 Apr 2003 10:26:27 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0061.cvx22-bradley.dialup.earthlink.net ([209.179.198.61] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 197f3d-0002kH-00; Mon, 21 Apr 2003 10:26:22 -0700 Message-ID: <3EA4296B.ACCD9AC8@mindspring.com> Date: Mon, 21 Apr 2003 10:24:59 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: bj@dc.luth.se References: <200304210827.h3L8Rx2F032265@dc.luth.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42f8eb4703b79c4256e711cd8da995129a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org cc: freebsd-performance@freebsd.org cc: "Jin Guojun \[NCS\]" Subject: Re: patch for test (Was: tcp_output starving -- is due to mbuf get delay?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 17:26:28 -0000 Borje Josefsson wrote: [ ... Jin Guojun's TCP output patch for high bandwidth delay product ... ] > This patch definitively works, and gives much higher PPS (32000 instead of > 19000). This is on a low-end system (PIII 900MHz with 33MHz bus), I'll > test one of my larger systems later today. > > One question though - is there any way of having the code being more > "aggressive"? As You see, in the netstat output below, it takes ~35 > seconds(!) before reaching full speed. On NetBSD I reach maxPPS almost > immediately. Even if we now (with Your patch) can utilize the hardware > much more, it only helps if You have connections that lasts for a very > long time, so that the "ramping" time is not significant. You can get immediate relief by porting this code instead of using the patch: http://www.psc.edu/networking/tcp.html#psc It is for NetBSD 1.3.2, and includes a SACK, Rate Halving, auto-tuning, and explicit congestion notification: Description: http://www.psc.edu/networking/rate_halving.html Direct link to the code: http://www.psc.edu/networking/ftp/tools/netbsd132_rh_10.tgz Also included is a FACK implementation. -- Terry