Date: Mon, 24 Mar 2008 12:22:12 +0100 From: "Daniel Andersson" <engywook@gmail.com> To: "Josh Paetzel" <josh@tcbug.org> Cc: freebsd-performance@freebsd.org Subject: Re: Tuning: 100mbit faster, gbit slower. Message-ID: <24adbbc00803240422m5b04b485s5df2f406aa89dc2b@mail.gmail.com> In-Reply-To: <200803240327.01211.josh@tcbug.org> References: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> <200803240327.01211.josh@tcbug.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:1b:21:0a:1d:87 inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:1b:21:0c:d1:b3 inet external.ip.goes.here netmask 0xfffffc00 broadcast xx.xxx.147.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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<UP,RUNNING,PROMISC> 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24adbbc00803240422m5b04b485s5df2f406aa89dc2b>