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 <sobomax@altavista.net>
This commit is contained in:
Chris Piazza 1999-09-24 04:29:42 +00:00
parent 395cca5c3e
commit 9994a0349b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21902
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- 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;

12
net/samba/files/patch-ah Normal file
View File

@ -0,0 +1,12 @@
--- 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;

12
net/samba3/files/patch-ah Normal file
View File

@ -0,0 +1,12 @@
--- 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;