From owner-freebsd-performance@FreeBSD.ORG Mon Mar 24 11:22:42 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 042741065671 for ; Mon, 24 Mar 2008 11:22:42 +0000 (UTC) (envelope-from engywook@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by mx1.freebsd.org (Postfix) with ESMTP id A89EE8FC18 for ; Mon, 24 Mar 2008 11:22:41 +0000 (UTC) (envelope-from engywook@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so1650681rvb.43 for ; Mon, 24 Mar 2008 04:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=QGJRaxX356IEvpiJ1Lqscx/V6ebKk/ia5sIYM/xwoJs=; b=IeS8JO/NpbbEfPglrCEFG4ot3NBqkhrbfNY137imFL7nRfpHmQgreRLmmC+P2HHnGtg/1TSq7fnGNKPJy3+PaaMUxXSrj9IGrg5sS+A9P5wUJSs6iOQD2FT80uoq5m/u6dxjFUPNvL6xT95fStanE/SXxZEJ+aXpegWtwTGWteU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Y2daHrXFakIL9Bz05fSzc6zQegxHPaVFdbcRYuvb9jTKVkmzF/ARfKw+wea9094A3JL7sT9ONBp+867pvsfX7oHL3nb0KAVw0TlpMXZfj0u23sRaKjYFolfYBqwQqaiOZnf7MKk/5CXyHE8CY52R4eAmwtKBL/ZyYCKXuZf6Vek= Received: by 10.141.211.13 with SMTP id n13mr2017965rvq.184.1206357732880; Mon, 24 Mar 2008 04:22:12 -0700 (PDT) Received: by 10.70.35.20 with HTTP; Mon, 24 Mar 2008 04:22:12 -0700 (PDT) Message-ID: <24adbbc00803240422m5b04b485s5df2f406aa89dc2b@mail.gmail.com> Date: Mon, 24 Mar 2008 12:22:12 +0100 From: "Daniel Andersson" To: "Josh Paetzel" In-Reply-To: <200803240327.01211.josh@tcbug.org> MIME-Version: 1.0 References: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> <200803240327.01211.josh@tcbug.org> X-Mailman-Approved-At: Mon, 24 Mar 2008 11:36:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-performance@freebsd.org Subject: Re: Tuning: 100mbit faster, gbit slower. X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2008 11:22:42 -0000 Thanks for the reply! Maybe I should have been more clear. My setup looks like this: internet - em1(server box) em0 - windoze desktop. The internet(em1) 100mbit seems to do fine, even better than before, I get about 11mb/s with rtorrent(uploading). It's the internal gbit connection that's weird with ftp. It not as fast nor as smooth as it was before I did the "tuning". I doesn't have any trouble running ftping at 30mb/s after the tuning so it is definately capabel of delivering 100mbit? $ifconfig -a em0: flags=8843 metric 0 mtu 1500 options=9b ether 00:1b:21:0a:1d:87 inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX ) status: active em1: flags=8843 metric 0 mtu 1500 options=9b ether 00:1b:21:0c:d1:b3 inet external.ip.goes.here netmask 0xfffffc00 broadcast xx.xxx.147.255 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=108810 metric 0 mtu 1500 lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 pflog0: flags=141 metric 0 mtu 33204 tcpdump as requested: engy# tcpdump -vv -i em0 portrange 40000-42000 or portrange 20-21 | cat > /usr/home/engy/tcpdump http://pastebin.org/25081 If you had something else in mind, let me know. When I transferred large files I sometimes got about 600 packages dropped by kernel. That can't be good. Also it seemed that I got a lot of ack packages, don't know if that's normal. Cheers, Daniel >The stock settings are more than enough to saturate 100TX with even > relatively > >ancient hardware. And by ancient I mean Pentium 2 class machines. > > > >The biggest tuning you can do is use intel (fxp) or 3com (xl) NICS and a > >halfway decent switch. > > > >If your server box can't saturate 100TX ethernet with the defaults then > >something is amiss. Perhaps provide a dmesg from the server and a client > and > >a tcpdump from an FTP session between them? > > > >-- > >Thanks, > > > >Josh Paetzel > > >PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB > >