From owner-freebsd-questions Tue Nov 16 20:40:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from crash.ab.videon.ca (crash.ab.videon.ca [206.75.216.220]) by hub.freebsd.org (Postfix) with ESMTP id 9535414EB9 for ; Tue, 16 Nov 1999 20:40:05 -0800 (PST) (envelope-from cwasser@v-wave.com) Received: from area51 (area51.v-wave.com [24.108.26.39]) by crash.ab.videon.ca (8.9.2/8.9.2) with SMTP id VAA15907; Tue, 16 Nov 1999 21:39:33 -0700 (MST) Message-ID: <005101bf30b6$014d7da0$271a6c18@vwave.com> From: "Chris Wasser" To: "Rik van Mierlo" , "Edirol" Cc: , "Marty Cawthon" References: Subject: Re: SAMBA / 3.3-Stable / transfer delay Date: Tue, 16 Nov 1999 21:41:20 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----- Original Message ----- From: Rik van Mierlo To: Edirol Cc: ; Marty Cawthon Sent: Monday, November 15, 1999 3:56 AM Subject: Re: SAMBA / 3.3-Stable / transfer delay [---cut---] This may be somewhat delayed and even unrelated but I had serious problems getting Samba 2.0.5a from the ports to work properly in relation to speed over my local network (sending and receiving files from the Samba server on the FreeBSD box) After hunting and a low I finally fixed it, I hope this helps someone: sysctl -w net.inet.tcp.delayed_ack=0 and in smb.conf: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SENDBUF=65535 SO_RCVBUF=65535 Now Samba works like a champ. My specs: FreeBSD 3.3-STABLE, Samba 2.0.5a w/patch-ah running over a 100Base-TX full duplex LAN. The following is tests conducted before and after the above recomendations sending and receiving to the FreeBSD samba volume using smbclient. My Winsux9x/NT client boxes also gave roughly the same speed (and increases afterwards) give-or-take a few 100 bytes. ------------------------------------------ smbclient statistics before finding solution: ------------------------------------------ smbclient "//deepthought/public" stn2 -U stn2 -d 3 -N -c "get acdc3223.exe" Client started (version 2.0.5a). resolve_name: Attempting lmhosts lookup for name deepthought<0x20> resolve_name: Attempting host lookup for name deepthought<0x20> Connecting to 192.168.1.1 at port 139 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.5a] dos_clean_name [\\acdc3223.exe] getting file acdc3223.exe of size 1448082 as acdc3223.exe (107.58 kb/s) (average 107.58 kb/s) smbclient "//deepthought/public" stn2 -U stn2 -d 3 -N -c "put acdc3223.exe" Client started (version 2.0.5a). resolve_name: Attempting lmhosts lookup for name deepthought<0x20> resolve_name: Attempting host lookup for name deepthought<0x20> Connecting to 192.168.1.1 at port 139 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.5a] dos_clean_name [\\acdc3223.exe] putting file acdc3223.exe as \acdc3223.exe (79.99 kb/s) (average 79.99 kb/s) ---------------------------------------- smbclient statistics after finding solution: ---------------------------------------- smbclient "//deepthought/public" stn2 -U stn2 -d 3 -N -c "get acdc3223.exe" Client started (version 2.0.5a). resolve_name: Attempting lmhosts lookup for name deepthought<0x20> resolve_name: Attempting host lookup for name deepthought<0x20> Connecting to 192.168.1.1 at port 139 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.5a] dos_clean_name [\\acdc3223.exe] getting file acdc3223.exe of size 1448082 as acdc3223.exe (12514.5 kb/s) (average 12514.5 kb/s) smbclient "//deepthought/public" stn2 -U stn2 -d 3 -N -c "put acdc3223.exe" Client started (version 2.0.5a). resolve_name: Attempting lmhosts lookup for name deepthought<0x20> resolve_name: Attempting host lookup for name deepthought<0x20> Connecting to 192.168.1.1 at port 139 Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.5a] dos_clean_name [\\acdc3223.exe] putting file acdc3223.exe as \acdc3223.exe (2740.59 kb/s) (average 2740.59 kb/s) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message