Hello, I try to find out how can I improve the performance of our samba installation. For this I install a testbed with a linux server (samba and nfs), a linux client, a windows 2003 server and a windows XP client. All computers are connected with gigabit ethernet. If I use NFS between the linux client and server I get 65MByte/sec, which is quiet a nice performance. If I use CIFS between the linux client(smbmount) or windows client and the samba server I get only 16MByte/sec. If I use CIFs between the windows client and windows server I get 35MByte/sec. This the more than double speed of the samba server. What can be the reason for these different speeds? How can I improve the performace of my samba server. I play around with socket options and max xmit option. But this does not help. At the moment this values are set: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=65536 SO_RCVBUF=65536 max xmit = 65536 I find out, that I can speedup the connection between linux client and server if I use smbclient with the option -b 15000 . Than I get 30MByte/sec. How can I set this option with smbmount and on the windows client? Thanks a lot, Andrea
Did you restart the samba service after changing the socket options? Performance will also be dependent on the hardware configuration of the clients/servers. It has been pointed out that with the latest Linux 2.6 kernels, you need not specify SO_SNDBUF and SO_RCVBUF. Were you measuring the READ or WRITE performance with this Samba server? srini On 2/16/07, Andrea Lorenz <lorenz@rz.rwth-aachen.de> wrote:> Hello, > > I try to find out how can I improve the performance of our samba > installation. For this I install a testbed with a linux server (samba > and nfs), a linux client, a windows 2003 server and a windows XP client. > All computers are connected with gigabit ethernet. > > If I use NFS between the linux client and server I get 65MByte/sec, > which is quiet a nice performance. > If I use CIFS between the linux client(smbmount) or windows client and > the samba server I get only 16MByte/sec. > If I use CIFs between the windows client and windows server I get > 35MByte/sec. This the more than double speed of the samba server. > > What can be the reason for these different speeds? How can I improve the > performace of my samba server. I play around with socket options and max > xmit option. But this does not help. At the moment this values are set: > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE > SO_SNDBUF=65536 SO_RCVBUF=65536 > max xmit = 65536 > > I find out, that I can speedup the connection between linux client and > server if I use smbclient with the option -b 15000 . Than I get 30MByte/sec. > How can I set this option with smbmount and on the windows client? > > Thanks a lot, > Andrea > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
On Fri, Feb 16, 2007 at 09:47:17AM +0100, Andrea Lorenz wrote:> If I use CIFS between the linux client(smbmount) or windows client and > the samba server I get only 16MByte/sec.Did you try cifsfs? smbfs is deprecated and orphaned. 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/20070216/b7adda7b/attachment.bin
> Did you restart the samba service after changing the socket options?Yes, of course I have restarted the samba server after changes in the configuration.> Performance will also be dependent on the hardware configuration of > the clients/servers. > It has been pointed out that with the latest > Linux 2.6 kernels, you need not specify SO_SNDBUF and SO_RCVBUF. Were > you measuring the READ or WRITE performance with this Samba server?I have testet the server with and without socket options. But it makes no significant difference. Andrea
> Did you try cifsfs? smbfs is deprecated and orphaned.If I use mount.cifs I get an error because we use ntlmv2. We use SC Linux 4.4 with kernel 2.6.9-42.0.3.ELsmp. Andrea mount -t cifs -o username=ae106lo,sec=ntlmv2 //guestc1/export1 /mnt_cifs Password: mount error 13 = Permission denied