From owner-freebsd-net Mon Oct 25 8:21:38 1999 Delivered-To: freebsd-net@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 6D3B414A1A; Mon, 25 Oct 1999 08:21:34 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whiste.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id IAA99744; Mon, 25 Oct 1999 08:18:28 -0700 (PDT) Date: Mon, 25 Oct 1999 08:18:28 -0700 (PDT) From: Julian Elischer To: "John E. Hein" Cc: Tony Jago , freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: Very Poor Samba -> Win9x performance [more] In-Reply-To: <14356.21920.670949.649870@Daffy.timing.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org his problem is in READ speed (read from disk, transmit on socket) I'm sure I have heard of this before.. On Mon, 25 Oct 1999, John E. Hein wrote: > 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