Date: Wed, 22 Sep 1999 02:51:28 -0700 (PDT) From: sobomax@altavista.net To: freebsd-gnats-submit@freebsd.org Subject: ports/13894: [PATCH] Very low Samba write speed Message-ID: <19990922095128.8F9DE150FD@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 13894 >Category: ports >Synopsis: [PATCH] Very low Samba write speed >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 22 03:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Maxim Sobolev >Release: 3.3-STABLE >Organization: Vega International Capital >Environment: FreeBSD vega 3.3-STABLE FreeBSD 3.3-STABLE #0: Fri Sep 17 20:11:17 EEST 1999 max@vega:/usr/src/sys/compile/VEGA i386 >Description: 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. >How-To-Repeat: >Fix: --- lib/util_sock.c.orig Wed Sep 22 10:52:50 1999 +++ lib/util_sock.c Wed Sep 22 11:30:18 1999 @@ -28,6 +28,9 @@ extern int sslFd; #endif /* WITH_SSL */ +#undef MSG_WAITALL +#define MSG_WAITALL 0 + extern int DEBUGLEVEL; BOOL passive = False; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990922095128.8F9DE150FD>