From owner-freebsd-net@FreeBSD.ORG Fri Jan 16 09:10:40 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 317D010656ED; Fri, 16 Jan 2009 09:10:40 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id F07218FC12; Fri, 16 Jan 2009 09:10:39 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id n0G9AZtl003614; Fri, 16 Jan 2009 01:10:36 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 16 Jan 2009 01:10:30 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Bacula: VERY SLOW on SAME host Thread-Index: Acl3kAN8TZdnv+vVTamy1eWu6h2OTgAKWA0j References: <3c1674c90901142046n6cd3c328kc0936190c2516a2a@mail.gmail.com> From: "Li, Qing" To: "Larry Rosenman" , Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: RE: Bacula: VERY SLOW on SAME host 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, 16 Jan 2009 09:10:52 -0000 Thanks to Pawel Jakub Dawidek, I found the empty "arp -an" output bug. The bug was introduced in my last commit that attempted at=20 providing some level of binary compatibility. Please sync file ./src/sys/net/rtsock.c to svn r187328=20 Thanks, -- Qing -----Original Message----- From: Larry Rosenman [mailto:ler@lerctr.org] Sent: Thu 1/15/2009 8:07 PM To: Li, Qing Cc: freebsd-current@freebsd.org; freebsd-net@freebsd.org Subject: RE: Bacula: VERY SLOW on SAME host =20 On Thu, January 15, 2009 6:46 pm, Li, Qing wrote: > This is a known issue and it's easily reproducible using the > netperf tool. > > I am working on a permanent solution. > > In the meantime you can use the following workaround, as suggested > by Kip: > > route add -host (if-ip) -iface lo0 > Thanks, Qing! If you have code you'd like me to test, feel free. On a related note, is the arp table supposed to be empty now? $ arp -an $ ping 192.168.200.5 PING 192.168.200.5 (192.168.200.5): 56 data bytes 64 bytes from 192.168.200.5: icmp_seq=3D0 ttl=3D255 time=3D0.810 ms 64 bytes from 192.168.200.5: icmp_seq=3D1 ttl=3D255 time=3D0.292 ms ^C --- 192.168.200.5 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.292/0.551/0.810/0.259 ms $ arp -an $ uname -a FreeBSD borg.lerctr.org 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Wed Jan 14 17:16:03 CST 2009 root@borg.lerctr.org:/usr/obj/usr/src/sys/BORG=20 amd64 $ > -- Qing > > >> -----Original Message----- >> From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd- >> current@freebsd.org] On Behalf Of Kip Macy >> Sent: Wednesday, January 14, 2009 8:47 PM >> To: Larry Rosenman >> Cc: freebsd-current@freebsd.org >> Subject: Re: Bacula: VERY SLOW on SAME host >> >> arpv2 - add an localhost interface route as a workaround >> >> -Kip >> >> On Wed, Jan 14, 2009 at 8:35 PM, Larry Rosenman > wrote: >> > Greetings, >> > Somethings changed (Around the 1st of the year?) where my bacula >> jobs >> > take FOREVER to backup on the same host >> > with the StorageDaemon and Director. If I change it to use > 127.0.0.1 >> > instead of the address on the em card, it's fine. >> > >> > If I use the address on the em nics, it's like 4kb/sec as opposed = to >> > multi-megabytes/sec. >> > >> > I'm looking for how to find what broke. >> > >> > Other networking to the host is fine, but this is TCP within the > same >> host, >> > but using the IP address on the em interface. >> > >> > I see the TCP Send-Q fill up, and it's extremely slow. >> > >> > What data do you need to help debug this? >> > >> > >> > >> > -- >> > Larry Rosenman http://www.lerctr.org/~ler >> > Phone: +1 512-248-2683 E-Mail: ler@lerctr.org >> > US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 >> > _______________________________________________ >> > freebsd-current@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-current >> > To unsubscribe, send any mail to "freebsd-current- >> unsubscribe@freebsd.org" >> > >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current- >> unsubscribe@freebsd.org" > --=20 Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893