From owner-freebsd-performance@FreeBSD.ORG Mon Mar 24 08:44:39 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 EF96B1065673 for ; Mon, 24 Mar 2008 08:44:39 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from conn-smtp.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by mx1.freebsd.org (Postfix) with ESMTP id D0D348FC23 for ; Mon, 24 Mar 2008 08:44:39 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from mail.tcbug.org (mail.tcbug.org [208.42.70.163]) by conn-smtp.mc.mpls.visi.com (Postfix) with ESMTP id A862D7873; Mon, 24 Mar 2008 03:27:13 -0500 (CDT) Received: from build64.tcbug.org (unknown [208.42.70.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tcbug.org (Postfix) with ESMTPSA id 52B646D9FBB; Mon, 24 Mar 2008 03:27:13 -0500 (CDT) From: Josh Paetzel To: freebsd-performance@freebsd.org Date: Mon, 24 Mar 2008 03:26:56 -0500 User-Agent: KMail/1.9.7 References: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> In-Reply-To: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3306768.7CppRB3lX1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803240327.01211.josh@tcbug.org> Cc: Daniel Andersson 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 08:44:40 -0000 --nextPart3306768.7CppRB3lX1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 23 March 2008 05:21:48 pm Daniel Andersson wrote: > Hey! > > I was trying to milk the most out of my 100/100. What I > ended up with was something, to me, quite odd. When I > hadn't done anything I could ftp things from my server > box at 50mb/s and run rtorrent at about 9-10 mb/s at most. > After my "tuning" I can only ftp at a very "choppy" > 30-40mb/s, but rtorrent runs at about 11mb/s. > This is what I did: > > kern.ipc.maxsockbuf=3D16777216 > net.inet.tcp.sendbuf_max=3D16777216 > net.inet.tcp.recvbuf_max=3D16777216 > > according to > http://dsd.lbl.gov/TCP-tuning/FreeBSD.html > every other setting there was default > I believe. > > I also set these: > > net.inet.tcp.recvspace: 262144 > net.inet.tcp.sendspace: 262144 > > dmesg: > http://pastebin.org/24780 > > Am I just imagining that rtorrent runs faster? > Can't ftp handle high buffers or did I mess > something up? Is there something else I > could do to make it faster? Setting up > polling perhaps? > > Cheers, > Daniel Andersson The stock settings are more than enough to saturate 100TX with even relativ= ely=20 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=20 halfway decent switch. If your server box can't saturate 100TX ethernet with the defaults then=20 something is amiss. Perhaps provide a dmesg from the server and a client a= nd=20 a tcpdump from an FTP session between them? =2D-=20 Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB --nextPart3306768.7CppRB3lX1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEABECAAYFAkfnZdUACgkQJvkB8SevrsuegQCdHo32RtuNpTgpf6LCH4ZcSLFs 7SsAnAq+yfO9pzTX5Uepmy+tiFpvsStX =I8t4 -----END PGP SIGNATURE----- --nextPart3306768.7CppRB3lX1--