From owner-freebsd-net@FreeBSD.ORG Fri Jul 2 02:36:10 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECF9106564A for ; Fri, 2 Jul 2010 02:36:10 +0000 (UTC) (envelope-from babolo@babolo.ru) Received: from smtp1.babolo.ru (smtp1.babolo.ru [195.9.14.139]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1DE8FC18 for ; Fri, 2 Jul 2010 02:36:09 +0000 (UTC) Received: from cicuta.babolo.ru (cicuta.babolo.ru [85.30.229.5] (may be forged)) by smtp1.babolo.ru (8.14.2/8.14.2) with SMTP id o622GaxY065264; Fri, 2 Jul 2010 06:16:36 +0400 (MSD) (envelope-from babolo@babolo.ru) Received: (nullmailer pid 32597 invoked by uid 136); Fri, 02 Jul 2010 02:20:59 -0000 Date: Fri, 2 Jul 2010 06:20:58 +0400 From: Aleksandr A Babaylov <.@babolo.ru> To: Pyun YongHyeon Message-ID: <20100702022058.GA32531@babolo.ru> References: <20100701235447.GJ7090@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100701235447.GJ7090@michelle.cdnetworks.com> Cc: Garrett Cooper , net@freebsd.org Subject: Re: Poor performance with natd/ipfw and TSO enabled on bce(4) card and 8.1-PRERELEASE 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: Fri, 02 Jul 2010 02:36:10 -0000 On Thu, Jul 01, 2010 at 04:54:47PM -0700, Pyun YongHyeon wrote: > On Wed, Jun 30, 2010 at 07:00:53PM -0700, Garrett Cooper wrote: > > Hi, > > Just an observation I made while transferring a file: > > > > # time scp floppy.img somehost: > > Password: > > floppy.img 100% 1440KB 13.7KB/s 01:45 > > > > real 1m59.400s > > user 0m0.031s > > sys 0m0.028s > > # sysctl net.inet.tcp.tso=0 > > net.inet.tcp.tso: 1 -> 0 > > # time scp floppy.img somehost: > > floppy.img 100% 1440KB 1.4MB/s 00:00 > > > > real 0m0.712s > > user 0m0.018s > > sys 0m0.018s > > > > Going ISDN speeds transferring a 1.44MB file is sad when you have > > a gigabit uplink :(... natd seems to be doing a LOT of spinning when > > TSO is enabled (it's going up to 73% CPU on a dual-proc quad-core > > machine). > I would use pf(4) if I have to handle lots of NAT rules. Or ipfw nat. man ipfw | grep nat