From owner-freebsd-net@FreeBSD.ORG Sun Jul 4 14:59:09 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 E42121065701 for ; Sun, 4 Jul 2010 14:59:09 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from n13.bullet.mail.ac4.yahoo.com (n13.bullet.mail.ac4.yahoo.com [74.6.228.93]) by mx1.freebsd.org (Postfix) with SMTP id 986FB8FC13 for ; Sun, 4 Jul 2010 14:59:09 +0000 (UTC) Received: from [76.13.12.67] by n13.bullet.mail.ac4.yahoo.com with NNFMP; 04 Jul 2010 14:46:03 -0000 Received: from [74.6.228.81] by t8.bullet.mail.ac4.yahoo.com with NNFMP; 04 Jul 2010 14:46:03 -0000 Received: from [127.0.0.1] by omp1002.mail.ac4.yahoo.com with NNFMP; 04 Jul 2010 14:46:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 248660.12820.bm@omp1002.mail.ac4.yahoo.com Received: (qmail 52634 invoked by uid 60001); 4 Jul 2010 14:46:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1278254763; bh=K9CAmiwC4w4QUYRj6xl5XXAgU3NqHWl7jTYM/3r4zZI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=HsRQlMiIDfNvzC89E6/jmGBSynhxgbYMXXgVw35LDsMUGOJZQsU27lgV+7WhwunNflIq3BsVa4rGBrS/HbZLQrVRB9yXLTM8DxPOmuJoW0makUCjcskoUO5dNQE9JynVwHq9E6Nfl3qBSvi4nyRhwtUHrcimDmurnYeRCim78r8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=i0W0BUm7MelapOywxA8cmuIU9HDf5WvUTnRu3l3bSseC24eN4OKHcFzBcQeAeHB9acOV6LFhcNpnIJqm7qZncz4cQPk8mUdVMLmNRz4Wghh1rzcRSrmy41fbvOx52w4kyyqNfYYu/WjmJEi2Gm5yXh4o6s3JZmYGrcSAwDsZSMs=; Message-ID: <49088.49942.qm@web59711.mail.ac4.yahoo.com> X-YMail-OSG: i9q94R4VM1kPUoRQhVD9yRBkrAWR2Y3vAnMc7RdouCSh1gE D65faUP_MnnuFCSHdk7BmBMf2NZT1qusjISGi9kuWvbjyDZqpT_H.YahxuF2 jv7kqMnP42iAwOLwxeQeJEJ8GxvYh7_TXW6KaOu742hXzfNwk4kB904Penhv 7cbedeKidpc.ui4gN1tafGB8QC7hMJ3joegVPoYaQT53pxBfvrcv3AB1JJMy 8wZpwFmwA2PPfnGQ4NRns0f6pBfyZ1NC6SiSc.85SqxnA0iFPHSM68NVCqMw ZvtFOlkPK9qA8KyP10jd12tx5KKdWVw3ssVbQFkR8QSPyI_LMfEl2uZ5Qc1y 4BHe3jMbyIH654j0UmETtfxiAzYNXF1ddWuIbN.W8N.oSPj638mIju1KRzg- - Received: from [89.165.120.23] by web59711.mail.ac4.yahoo.com via HTTP; Sun, 04 Jul 2010 07:46:03 PDT X-Mailer: YahooMailRC/397.8 YahooMailWebService/0.8.104.274457 References: Date: Sun, 4 Jul 2010 07:46:03 -0700 (PDT) From: bored to death To: Garrett Cooper In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Sun, 04 Jul 2010 14:59:10 -0000 hi, just wanted to say it's not just on bce. i had the same problem with my "msk" interfaces. i just had 1 pipe and 1 divert rule in my ipfw rules. and i couldn't even open a simple 10K html page from apache, even apache didn't respond. eventually i disabled tso on my interfaces and everything went back to normal. ________________________________ From: Garrett Cooper To: net@freebsd.org Sent: Thu, July 1, 2010 6:30:53 AM Subject: Poor performance with natd/ipfw and TSO enabled on bce(4) card and 8.1-PRERELEASE 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). Here are some other details: # ipfw list 00050 divert 8668 ip4 from any to any via bce1 00100 allow ip from any to any via lo0 00200 deny ip from any to 127.0.0.0/8 00300 deny ip from 127.0.0.0/8 to any 00400 deny ip from any to ::1 00500 deny ip from ::1 to any 00600 allow ipv6-icmp from :: to ff02::/16 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 00900 allow ipv6-icmp from any to any ip6 icmp6types 1 01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136 65000 allow ip from any to any 65535 deny ip from any to any # ls /etc/natd* ls: /etc/natd*: No such file or directory # uname -a FreeBSD tameshi.cisco.com 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0 r209169: Mon Jun 14 12:41:49 PDT 2010 root@:/usr/obj/data/scratch/src/stable/8/sys/TAMESHI_STABLE amd64 # pciconf -lv | grep -A 4 bce bce1@pci0:7:0:0: class=0x020000 card=0x01b21028 chip=0x164c14e4 rev=0x12 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' class = network subclass = ethernet -- bce0@pci0:3:0:0: class=0x020000 card=0x01b21028 chip=0x164c14e4 rev=0x12 hdr=0x00 vendor = 'Broadcom Corporation' device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' class = network subclass = ethernet Let me know what other info is required. Thanks, -Garrett PS Please keep me CCed in all emails. _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"