diff options
author | cpiazza <cpiazza@FreeBSD.org> | 1999-09-24 04:29:42 +0000 |
---|---|---|
committer | cpiazza <cpiazza@FreeBSD.org> | 1999-09-24 04:29:42 +0000 |
commit | 28e64ce3468d80a4f4f2cd8193f75e56b39f8bd1 (patch) | |
tree | a34bb5d6d7bc3e6dc65c0a1d79497779a8d822a6 /net/samba/files | |
parent | 04a11ad1520ed0e84cfd230be3896ba1c5baef9e (diff) | |
download | FreeBSD-ports-28e64ce3468d80a4f4f2cd8193f75e56b39f8bd1.zip FreeBSD-ports-28e64ce3468d80a4f4f2cd8193f75e56b39f8bd1.tar.gz |
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>
Diffstat (limited to 'net/samba/files')
-rw-r--r-- | net/samba/files/patch-ah | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/samba/files/patch-ah b/net/samba/files/patch-ah new file mode 100644 index 0000000..81b1f75 --- /dev/null +++ b/net/samba/files/patch-ah @@ -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; |