Hello, net. I'm setupping file server for WindowsXP/SP3 clients, based on FreeBSD 7.0-Stable nad latest samba port.
First of all, Is et these kernel variables: kern.ipc.maxsockbuf=16777216 net.inet.tcp.sendbuf_max=16777216 net.inet.tcp.recvbuf_max=16777216 net.inet.tcp.sendspace=131072 net.inet.tcp.recvspace=131072 All tests are performed with only one client for start. Server and client are linked with 1Gig link, jumbo frames are enabled (9014 bytes) and iperf shows about 900Mbit/s of raw TCP with big windows (about 256Kb for start). Local tests shows 75Mb/s Read/write from/to shared file system with big files. Default configuration of samba gives me only 20Mb/s read and loosy 15Mb/s write. With "socket options = TCP_NODELAY" speed becomes 25/20 Mb/S R/W. Then I start to change SO_RCVBUF/SO_SNDBUF and found (with binary search), that best values are 49152. Yes, this strange values. 65536 is worse, and 32768 is worse too. This magic value gives me about 40MB/s read and 30-35Mb/s write. "Recommended" 8192 gives me 40K/s read (YES, 40 _K_ilobytes per second!) But I don't like this situation. Why? Because, it is black magic, not science. Why 49152? How can this value be found without binary search? What affects this value? Second problem is about TCP windows, which can give more thoughtput on 1Gig link. I've tried to tcpdump traffic between samba and WinXP client, and it shows, that window scaling is turned off. Always. It is enabled on WinXP client, it is enabled on FreeBSD server, it us used by iperf (with great effect), but not by samba! What do I do wrong? -- // Black Lion AKA Lev Serebryakov <[EMAIL PROTECTED]> _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"