From owner-freebsd-performance@FreeBSD.ORG Thu Nov 10 19:03:33 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 718EA16A41F for ; Thu, 10 Nov 2005 19:03:33 +0000 (GMT) (envelope-from brad-fbsd-perf@duttonbros.com) Received: from uno.mnl.com (uno.mnl.com [63.97.246.49]) by mx1.FreeBSD.org (Postfix) with SMTP id 662BD43D99 for ; Thu, 10 Nov 2005 19:03:06 +0000 (GMT) (envelope-from brad-fbsd-perf@duttonbros.com) Received: (qmail 62463 invoked by uid 85); 10 Nov 2005 19:03:04 -0000 Received: from 127.0.0.1 by uno (envelope-from , uid 89) with qmail-scanner-1.25 (spamassassin: 2.55. Clear:RC:1(127.0.0.1):. Processed in 0.050185 secs); 10 Nov 2005 19:03:04 -0000 Received: from unknown (HELO uno.mnl.com) (127.0.0.1) by localhost with SMTP; 10 Nov 2005 19:03:03 -0000 Received: from 67.169.82.217 (SquirrelMail authenticated user bdutton) by uno.mnl.com with HTTP; Thu, 10 Nov 2005 11:03:03 -0800 (PST) Message-ID: <54050.67.169.82.217.1131649383.squirrel@uno.mnl.com> In-Reply-To: <20051110090429.J33260@fledge.watson.org> References: <70e8236f0511050457s5ce6d8batf805fbc9edd91360@mail.gmail.com> <20051109060931.GD5188@obiwan.tataz.chchile.org> <70e8236f0511090517g29b3f887x1b97ef5dec04548@mail.gmail.com> <70e8236f0511090627p24c90400ke39bdb0da222a323@mail.gmail.com> <4372184C.10809@mebius.lv> <43727712.4020500@rogers.com> <20051110090429.J33260@fledge.watson.org> Date: Thu, 10 Nov 2005 11:03:03 -0800 (PST) From: "Bradley W. Dutton" To: freebsd-performance@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: Poor Samba throughput on 6.0 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: brad-fbsd-perf@duttonbros.com List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 19:03:33 -0000 I recently upgraded to gigabit and was expecting faster Samba performance as well. I don't recall the exact numbers but net.inet.tcp.delayed_ack=0 did help quite a bit on my box. I too tried mtu (intel cards and SMC jumbo switch) and polling but the transfer rates would max out around 10megs/sec with Samba. Disk transfer rate shouldn't be a problem, the disk easily does 20+meg/sec writes. ttcp transfer rates are 30+ megs/sec. One thing I did notice with ttcp is that using the -D option (TCP_NODELAY?) helped a lot. I'm using a freebsd/samba 6.0 server and windows xp clients. I'll test the other 2 sysctls over the next few days to see if they help. Thanks, Brad > On Wed, 9 Nov 2005, Mike Jakubik wrote: > >> I have done many tests to try to determine the poor performance on my >> systems (FreeBSD-current connected directly to Windows XP via identical >> Intel Pro 1000 cards) and my only conclusion is that Samba on FreeBSD >> when talking to a Windows box is simply fubared. Im willing to bet thats >> not the case on Linux. I can get great speeds (~30MB/s) using ftp >> between the machines, but when i use Samba, i get a maximum of 11MB/s. I >> have tried playing with mtu size, samba options, polling, but there does >> not seem to be any visible bottlenecks, its just simply slow. It would >> be great if someone could get to the bottom of this, its quite >> frustrating. > > There are a number of TCP related configuration frobs on FreeBSD. It > would be quite interesting to know how modifying each of the following > settings affects Samba performance: > > net.inet.tcp.delayed_ack > net.inet.tcp.sack.enable > net.inet.tcp.inflight.enable > > There has been recent evidence that the inflight bandwidth calculation is > having problems generating stable performance at high bandwidth and low > latency, so I might try that one first. > > Robert N M Watson