From owner-freebsd-performance@FreeBSD.ORG Mon Mar 24 05:40:37 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 EBF9C106564A for ; Mon, 24 Mar 2008 05:40:37 +0000 (UTC) (envelope-from j_guojun@lbl.gov) Received: from smtp122.sbc.mail.sp1.yahoo.com (smtp122.sbc.mail.sp1.yahoo.com [69.147.64.95]) by mx1.freebsd.org (Postfix) with SMTP id C5A4B8FC14 for ; Mon, 24 Mar 2008 05:40:37 +0000 (UTC) (envelope-from j_guojun@lbl.gov) Received: (qmail 97617 invoked from network); 24 Mar 2008 05:13:57 -0000 Received: from unknown (HELO ?192.168.2.15?) (jinmtb@sbcglobal.net@75.37.3.8 with plain) by smtp122.sbc.mail.sp1.yahoo.com with SMTP; 24 Mar 2008 05:13:57 -0000 X-YMail-OSG: Ni.tp0AVM1nYIWeVU_KV6rH1Np7K91ZxGrXA5zE1F2ax8ViTcRREUXqWxuMwGWkZcZjhfXBcMZZHQgUR7qO8GKlWZhA8kIqB.gwGq1dxwhljOcC8AQ-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <47E73891.8000803@lbl.gov> Date: Sun, 23 Mar 2008 22:13:53 -0700 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061027 X-Accept-Language: en, zh, zh-CN MIME-Version: 1.0 To: Daniel Andersson References: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> In-Reply-To: <24adbbc00803231521h78844f26q77c48573f82408b9@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 24 Mar 2008 11:13:20 +0000 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 05:40:38 -0000 You cannot do blind tuning according those numbers. They are for 1-10Gbps pipe. The proper number is "pipe diamter" x "pipe length" = capacity In your case, the maximum number = 100Mbps x "delay from your machine to server" -Jin 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=16777216 >net.inet.tcp.sendbuf_max=16777216 >net.inet.tcp.recvbuf_max=16777216 > >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 > >