You are not logged in.

#1 2010-06-09 22:12:02

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

samba speed

Hi everyone,

I've got a linux server with some samba shares here. When i read from the shares using a Windows machine i get transfer speeds of ~80 MBps which is what's to be expected of my 2.5" drives.
However, when accessing the share from linux, i get transfer (read) speeds of only 20 MBps.

Now comes the strange thing:
If i open another instance of copying parellell to the other one, the speed is 20 MBps too. I assume this would go up to 80 MBps, but obviously i can at least have 40 MBps.
Why isn't rsync using the full speed? Can you think of an explanation?

Thanks,
demian

Last edited by demian (2010-06-09 22:14:34)


no place like /home
github

Offline

#2 2010-06-09 23:47:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: samba speed

I've seen this before on my machines as well.  Can't explain it.  Post your smb.conf - here is mine:

[global]
   workgroup = share
   server string = arch server
   security = user
   hosts allow = 192.168.100. 127.
   log file = /var/log/samba/%m.log
   max log size = 50
   socket options = TCP_NODELAY
   server string = novelty
   work group = novelty

[media]
    writeable = yes
    valid users = user1,user2
    path = /media/media

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-06-10 12:42:57

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: samba speed

Here's another example of the weird behaviour:
The windows machine gets <10 MBps when copying from one shared harddrive but > 70 MBps when copying from another shared harddrive.

The linux machine gets 40 MBps with both harddrives (when using two instances).

I've discovered, that if i use an MTU > 1500 the speed for one instance breaks down to 20 MBps. When using an mtu of 1500 i get ~50% more (33 MBps in one instance (but still only 40 MBps overall)).

My smb.conf:

[global]
workgroup = WORKGROUP
server string = media server
netbios name = htpc
security = user
hosts allow = 192.168.0.
guest account = acc1
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no
socket options = TCP_NODELAY

[home]
comment = home on htpc
path = /home/slave
guest ok = no
available = yes
browsable = yes
public = no
read only = yes
write list = acc3

[media]
comment = media on htpc
path = /media
guest ok = yes
available = yes
browsable = yes
public = yes
read only = yes
write list = acc3

[incoming]
comment = incoming on htpc
path = /media/music/incoming
guest ok = yes
available = yes
browsable = yes
public = yes
writable = yes

For now, I'll be using NFS4 on the linux machine which gives me solid speeds of 30 - 70 MBps. I'm still curious what's wrong with samba here though.

Last edited by demian (2010-06-10 13:11:11)


no place like /home
github

Offline

#4 2010-06-10 21:39:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: samba speed

I don't know - your config seems normal.  Is there a samba mailing list you can post on to get some feedback?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB