From owner-freebsd-performance@FreeBSD.ORG Sun Sep 24 14:05:09 2006 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 1837C16A492 for ; Sun, 24 Sep 2006 14:05:08 +0000 (UTC) (envelope-from lists@wm-access.no) Received: from lakepoint.domeneshop.no (lakepoint.domeneshop.no [194.63.248.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3645843D53 for ; Sun, 24 Sep 2006 14:05:07 +0000 (GMT) (envelope-from lists@wm-access.no) Received: from [192.168.9.8] (gw1.arcticwireless.no [194.19.37.70]) (authenticated bits=0) by lakepoint.domeneshop.no (8.13.8/8.13.8) with ESMTP id k8OE556Z004177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 24 Sep 2006 16:05:06 +0200 Message-ID: <45169091.4040000@wm-access.no> Date: Sun, 24 Sep 2006 16:05:05 +0200 From: =?ISO-8859-1?Q?Sten_Daniel_S=F8rsdal?= User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jan Zacharias References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-performance@freebsd.org Subject: Re: Samba performance, TCP Stack Issue? 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: Sun, 24 Sep 2006 14:05:09 -0000 Jan Zacharias wrote: > Hi, >=20 > was anybody able to tune the Samba service (2.2.12 or 3.0.23b) so that > it would perform out as well as > unter linux where it maxes out at about 11 Mb/s using some Intel/3com c= ard? >=20 > So far, the most I got out of it was ~6 Mb/s while txing one file to a > win2k station, curiously I get > ~8.5 Mb/s when txing multiple files in parallel. >=20 > So far i messed with: >=20 > - ifconfig mtu > - net.inet.tcp settings > - smb's socket options >=20 > Tuning SO_SNDBUF gave only very little gain, adapting the mtu to match > the win2k box was useless. > W/a net.inet.tcp.inflight.enable enabled the txrate is 2 Mb/s lower, > however 6 Mb/s is still SLOW. >=20 > I cant find the bottleneck, as the system is quite idle. >=20 > Any Suggestions? >=20 Try setting sysctl net.inet.tcp.delayed_ack to '0'. If that helps noticably you may tune sysctl net.inet.tcp.delacktime to a lower value than the default ('100' ??). delacktime is only in effect when net.inet.tcp.delayed_ack =3D '1'. Does that help any? --=20 Sten Daniel S=F8rsdal