From owner-freebsd-ports Wed Sep 22 3: 0: 4 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8D25D1555D for ; Wed, 22 Sep 1999 03:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA92335; Wed, 22 Sep 1999 03:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 8F9DE150FD; Wed, 22 Sep 1999 02:51:28 -0700 (PDT) Message-Id: <19990922095128.8F9DE150FD@hub.freebsd.org> Date: Wed, 22 Sep 1999 02:51:28 -0700 (PDT) From: sobomax@altavista.net To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: ports/13894: [PATCH] Very low Samba write speed Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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