From owner-freebsd-questions Fri Dec 17 10:38:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fep7.mail.ozemail.net (fep7-old.mail.ozemail.net [203.2.192.99]) by hub.freebsd.org (Postfix) with ESMTP id 1DBBE1577A for ; Fri, 17 Dec 1999 10:38:11 -0800 (PST) (envelope-from death@southcom.com.au) Received: from windows (1Cust123.tnt1.hba1.da.uu.net [210.84.240.123]) by fep7.mail.ozemail.net (8.9.0/8.6.12) with ESMTP id FAA25449 for ; Sat, 18 Dec 1999 05:38:07 +1100 (EST) Message-Id: <4.2.2.19991218053300.00b08320@mail.southcom.com.au> X-Sender: death@mail.southcom.com.au X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Sat, 18 Dec 1999 05:37:49 +1100 To: freebsd-questions@FreeBSD.ORG From: death Subject: Samba 2.0.6 & broken TCP_NODELAY option Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm using FreeBSD 3.4-RC with Samba 2.0.6 compiled from the ports (ports have been cvsupped at the same time as /src) The smb.conf entry: socket options = TCP_NODELAY Doesn't work. Transfers to the samba server are dog slow at 200KB/s with or without the option. Transfers from the server are fine either way. Doing the following instantly fixes the speed problem: sysctl -w net.inet.tcp.delayed_ack=0 BTW, i noticed some odd things in my smb.log: [1999/12/18 04:53:01, 0] lib/util_sock.c:set_socket_options(151) Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor) [1999/12/18 04:53:01, 0] lib/util_sock.c:set_socket_options(151) Failed to set socket option TCP_NODELAY (Error Bad file descriptor) [1999/12/18 04:53:41, 1] smbd/server.c:main(643) smbd version 2.0.6 started. Copyright Andrew Tridgell 1992-1998 [1999/12/18 04:53:41, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 2078 are available. [1999/12/18 04:53:41, 0] smbd/server.c:main(702) standard input is not a socket, assuming -D option Is this desired? Is there a better way to fix samba to get better performance? Am i doing something wrong? Cheers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message