From owner-freebsd-net@FreeBSD.ORG Mon May 4 16:17:30 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 470D4106566C; Mon, 4 May 2009 16:17:30 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from proxy.meer.net (proxy.meer.net [64.13.141.13]) by mx1.freebsd.org (Postfix) with ESMTP id 23FB28FC08; Mon, 4 May 2009 16:17:29 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by proxy.meer.net (8.14.3/8.14.3) with ESMTP id n44FllhT032699; Mon, 4 May 2009 08:48:01 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id n44FlaDf075856; Mon, 4 May 2009 08:47:37 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from gnnmac.hudson-trading.com (209.249.190.8.available.above.net [209.249.190.8] (may be forged)) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id n44FlTgR043692 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 4 May 2009 08:47:30 -0700 (PDT) (envelope-from gnn@neville-neil.com) Message-Id: <070BE192-6D18-4DB9-87AE-49233996CCA4@neville-neil.com> From: George Neville-Neil To: Lawrence Stewart In-Reply-To: <49FC3984.8050609@freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 4 May 2009 11:47:28 -0400 References: <00C19FCC-837A-44B8-A0C9-C56E3D02F8EF@dragondata.com> <49FC3984.8050609@freebsd.org> X-Mailer: Apple Mail (2.930.3) X-Spam-Score: undef - spam scanning disabled X-CanIt-Geo: ip=64.13.141.3; country=US; region=CA; city=Mountain View; latitude=37.3974; longitude=-122.0732; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.3974,-122.0732&z=6 X-CanItPRO-Stream: default X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 64.13.141.13 Cc: freebsd-net@freebsd.org Subject: Re: Slow local TCP transfers on -CURRENT 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: Mon, 04 May 2009 16:17:30 -0000 On May 2, 2009, at 08:16 , Lawrence Stewart wrote: > Kevin Day wrote: >> I've been seeing this for a few months now on -CURRENT. TCP >> transfers to local IP addresses (but not 127.0.0.1) are incredibly >> slow. >> Transfer from localhost: >> # scp "root@127.0.0.1:/boot/kernel/kernel" . >> kernel >> 100 >> % 11MB 11.1MB/s 00:00 >> Appropriately fast. >> Transfer from an IP on a local interface: >> # scp "root@216.14.96.4:/boot/kernel/kernel" . >> kernel >> 0 >> % 16KB 13.0KB/s 14:37 ETA >> The routes seem normal: >> # route get 127.0.0.1 >> route to: localhost >> destination: localhost >> interface: lo0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 16384 1 0 >> # route -n get 216.14.96.4 >> route to: 216.14.96.4 >> destination: 216.14.96.0 >> mask: 255.255.255.128 >> interface: nfe0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 1500 1 0 >> nfe0: flags=8843 metric 0 >> mtu 1500 >> >> options=19b >> ether 00:30:48:c6:dd:9c >> inet 216.14.96.4 netmask 0xffffff80 broadcast 216.14.96.127 >> Takes 10-60 minutes to copy, stalling frequently during the >> transfer. It's not limited to just scp either, all TCP transfers >> seem to stall this way. >> I don't believe I'm doing anything unusual, has anyone seen >> anything like this? > > Known fallout from the ARPv2 work I believe. As a workaround until > it gets fixed: > > route add -host (if-ip) -iface lo0 (note I haven't tested this myself) > > (see the Jan 2009 freebsd-net@ thread "Bacula: VERY SLOW on SAME > host" for some details). > Anyone know if there is a fix in the offing? Best, George