From owner-freebsd-net Mon Oct 25 6: 5:49 1999 Delivered-To: freebsd-net@freebsd.org Received: from timingpdc.timing.com (timingpdc.timing.com [206.168.13.194]) by hub.freebsd.org (Postfix) with ESMTP id 1743214CC2; Mon, 25 Oct 1999 06:05:45 -0700 (PDT) (envelope-from jhein@timing.com) Received: from Daffy.timing.com ([206.168.13.218]) by timingpdc.timing.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 103-49575U100L2S100) with ESMTP id AAA331; Mon, 25 Oct 1999 07:06:23 -0600 Received: (from jhein@localhost) by Daffy.timing.com (8.9.3/8.9.3) id HAA28016; Mon, 25 Oct 1999 07:05:36 -0600 (MDT) (envelope-from jhein@Daffy.timing.com) X-Authentication-Warning: Daffy.timing.com: jhein set sender to jhein@Daffy.timing.com using -f MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14356.21920.670949.649870@Daffy.timing.com> Date: Mon, 25 Oct 1999 07:05:36 -0600 (MDT) From: "John E. Hein" To: Tony Jago Cc: Julian Elischer , freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Very Poor Samba -> Win9x performance [more] In-Reply-To: References: X-Mailer: VM 6.75 under Emacs 20.4.1 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Tony Jago wrote at 18:33 +1000 on Oct 25: > Further to my problem with slow smbclient "put"'s. > > 1. FreeBSD 3.[23] machine -> Win98 slow (9k per second). > 2. Solaris machine -> Win98 fast (500+k per second). > 3. FreeBSD 2.2.7 machine -> Win98 fast (500+k per second). > > Just incase I was doing something insane, I installed a brand new > 3.3-RELEASE machine running the GENERIC kernel, installed samba from the > ports and did a smbclient "put" - still very slow performance. Make sure you've CVSup'd the latest samba port. On 9/24 patch-ah was added which makes a mod to lib/util_sock.c to resolve this problem on FreeBSD machines: Here's the log description of the patch. It seems to explain exactly your problem, but you didn't give enough info about your samba port installation to tell whether you got this patch or not. ----- start log msg for patch-ah ----- revision 1.1 date: 1999/09/24 04:29:42; author: cpiazza; state: Exp; Add a patch to fix a problem with very low write speeds with samba on freebsd. Following is description made by one of the Samba developers: "The problem is we switched to using recv() with the MSG_WAITALL flag instead of read(). This makes Samba faster on most systems. On FreeBSD it causes a massive slowdown and I don't know why. To fix it, change the definition of MSG_WAITALL to be zero in lib/util_sock.c and recompile 2.0.5a. I'm hoping someone from FreeBSD will get back to me with some explanation. Regards, Jeremy Allison, Samba Team." This problem where observed by almost all samba-2.0.5a users and typically it led to 10-20x decrease in write speed. PR: 13894 Submitted by: Maxim Sobolev ----- end log msg ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message