Roy Abou Assaly
2008-Oct-05 19:32 UTC
[Samba] Performance tweaking from Ubuntu to a Macbook vs. Windows through DLink DIR-655
Hi Everyone, I've been happy with my setup the last 2 years, and I just bought a new router - D-Link DIR-655. I was connecting wireless and wired and noticed the following before tweaking: Wired 100 Mbps =============Macbook to Ubuntu: 56 Mbps Windows to Ubuntu: 72 Mbps Wireless N (Connected at 130 Mbps ... Apple's fault) ================================================== =Macbook to Ubuntu: 20 Mbps Macbook to Windows: 44 Mbps That's a significant change. So I changed the following line in Samba's smb.conf file: socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 to socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 After this, I noticed the following: Wireless: ======== Macbook to Ubuntu: 44 Mbps, with peaks up to 48 Mbps. That's nearly double the performance!! Wireless is basically what I was unhappy about. Does anybody have any SO_SNDBUF and SO_RCVBUF values that they care to share that they have used in order to improve network performance? Btw, removing those values gives close to the same result. Oh, and all the above were using Samba shares. Just for kicks, I tested the following over SFTP using FileZilla: Macbook to Ubuntu: 60 Mbps <---- MY GOAL! I'm hoping to achieve the above speed with the necessary tweaks. So I need another 16 Mbps to squeeze out! Please note that I did all the above tests using files larger than 1 GB to get a sustainable speed. I also did tests using 1MB files and performance was similar. Thanks guys! Any help is appreciated. -- View this message in context: http://www.nabble.com/Performance-tweaking-from-Ubuntu-to-a-Macbook-vs.-Windows-through-DLink-DIR-655-tp19826605p19826605.html Sent from the Samba - General mailing list archive at Nabble.com.
Volker Lendecke
2008-Oct-06 07:04 UTC
[Samba] Performance tweaking from Ubuntu to a Macbook vs. Windows through DLink DIR-655
On Sun, Oct 05, 2008 at 12:32:27PM -0700, Roy Abou Assaly wrote:> socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 > SO_SNDBUF=65536On modern Linux systems (i.e. from the last 5 years or so), just dump the buffer parms completely. The Linux kernel is fine figuring out the buffer sizes itself. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20081006/2a6bd9fc/attachment.bin
Roy Abou Assaly
2008-Oct-06 15:11 UTC
[Samba] Performance tweaking from Ubuntu to a Macbook vs. Windows through DLink DIR-655
Volker Lendecke wrote:> > On Sun, Oct 05, 2008 at 12:32:27PM -0700, Roy Abou Assaly wrote: >> socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 >> SO_SNDBUF=65536 > > On modern Linux systems (i.e. from the last 5 years or so), > just dump the buffer parms completely. The Linux kernel is > fine figuring out the buffer sizes itself.Many thanks Volker. I will be doing just that! -- View this message in context: http://www.nabble.com/Performance-tweaking-from-Ubuntu-to-a-Macbook-vs.-Windows-through-DLink-DIR-655-tp19826605p19839836.html Sent from the Samba - General mailing list archive at Nabble.com.