From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 08:16:06 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12EC416A417 for ; Fri, 30 Nov 2007 08:16:06 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 86F7813C448 for ; Fri, 30 Nov 2007 08:16:05 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so2148922nfb for ; Fri, 30 Nov 2007 00:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+TmzKWWToo3wl1QAVpJnJ+O7A0nDYZx0L7dcuPqmdy0=; b=b5KgcjgLP8iZ87AMeo+MmVY7NwokhvUonQwIQwdziSYL0tAeAEandXKRYVhGROLKNs7hrPin676T81HcCeycAo9Q4wTt81gE62NuB34ksD1vug2TVNMA3gY9Yozkd+dCzAH2IREwx0SgEU1kTTGXiOz3DchZPzNgjmCL2P0V2pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hos7nMiFP3+3yvNIXp29KHJpzeCgMjN8P93b2bhk/gckueInpmomQiXZG7zmFGbXUH3DHYL20LREfRJ+8orHjy3SmTe/MV2NRuZ1b+HdTRqV5NuoLQQBLcDNGhJIAeY2cVPsMSHcxRjzaGWiHYPnfcmPA1q2D6bYR0T2H0bPA+M= Received: by 10.86.95.20 with SMTP id s20mr7028161fgb.1196410564190; Fri, 30 Nov 2007 00:16:04 -0800 (PST) Received: by 10.86.97.10 with HTTP; Fri, 30 Nov 2007 00:16:04 -0800 (PST) Message-ID: <2a41acea0711300016w1aa144fel1641b3dbf075e043@mail.gmail.com> Date: Fri, 30 Nov 2007 00:16:04 -0800 From: "Jack Vogel" To: "Vitezslav Novy" In-Reply-To: <474FB9E5.9090208@vnovy.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <474FB9E5.9090208@vnovy.net> Cc: freebsd-stable@freebsd.org Subject: Re: 7.0 BETA3 - slow TCP upload (TSO related?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 08:16:06 -0000 On Nov 29, 2007 11:21 PM, Vitezslav Novy wrote: > Hello, > > my configuration is > > kernel GENERIC > > em0: flags=8843 metric 0 mtu 1500 > options=18b > ether 00:19:d1:0f:1c:18 > inet 86.49.14.16 netmask 0xffffff00 broadcast 86.49.14.255 > media: Ethernet autoselect (100baseTX ) > status: active > > and standard "open" ipfw firewall and > natd -u -s -m -d -dynamic -n em0 > > I experience very slow TCP upload from this host - cca 50kbps. > I have some debug prints in kernel (mostly in ip_output and ipfw log) > and I see: > > 1/ outgoing packet appears in ip_output with ip_len 2924 and > m->pkthdr.csum_flags=1 > 2/ is diverted by firewall > 3/ Packet appears immediately again in ip_output with ip_len 2924 and > m->pkthdr.csum_flags=1 > 4/ Packet is accepted by firewall and dropped by ip_output with error 40 > EMSGSIZE > 5/ After cca 0.4s (tcp retransmit timeout?) new packet appears in > ip_output with ip_len 1488 and m->pkthdr.csum_flags=1 > 6/ is successfully diverted and accepted by ipfw and sent to wire. > 7/ after tcp ack is received new packet appears in ip_output with ip_len > 2924 and everything repeats > > > Packets are not changed by natd, beacause have src address of em0. > nat > > > Upload has normal speed (512kbps) if > I unset TSO on interface OR set net.inet.tcp.tso=0 OR (strange thing) > delete ipfw divert rule > > If necessary I will collect and send more info. TSO is silly at 100Mb, turn it off :) Jack