You are not logged in.
Pages: 1
Hello,
I have a samba share (SATA disk) on a linux machine. I have a windows client (WIN 7) machine which is doing read/write on the SATA disk using SMB2 protocol. I am using Robocopy program of windows to do the same. However the write speed from Win7 client machine to the samba share is very slow.
I have made changes like strict allocate = yes and allocation roundup size = 104857600 to the smb.conf file. Changed socket options but nothing worked.
The local dd command and robocopy speed matches for read but there is huge difference between write speeds. Please help me with this issue.
Offline
Welcome to Arch. You'll need to post your smb.conf for sure. Any errors in dmesg?
Offline
Thankyou. Here the contents of smb.conf file
#======================= Global Settings =====================================
[global]
workgroup = MYGROUP
server string = samba
max log size = 50000
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
log level = 3
log file = /var/log/samba/log.smbd
#hosts allow = 127.
#interfaces = eth0 192.168.0.1/255.255.255.0
interfaces = eth0
dns proxy = no
#The SO_RCVBUF/SO_SNDBUF can be tuned in accordanc to NIC Card
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16777216 SO_SNDBUF=16777216
#Socket options = TCP_NODELAY IPTOS_LOWDELAY
strict allocate = yes
allocation roundup size = 104857600
max xmit = 65536
aio read size = 65535
aio write size = 65535
# enable the below comment to get root access
guest account = root
use sendfile = yes
use mmap = yes
large readwrite = yes
min receivefile size = 1
max protocol = SMB2
client lanman auth = yes
wins support = yes
hostname lookups = yes
#============================ Share Definitions ==============================
#idmap uid = 16777216-33554431
#idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[data]
path = /data
public = yes
guest ok= yes
writable = yes
valid users = amit, root
read only = no
create mode = 0777
directory mode = 0777
printable = no
Offline
1) Please use code tags when posting code.
2) Any error in dmesg?
3) Your /etc/samba/smb.conf seems tweaked when I compare it to mine. Try simplifying it and testing to see if your speed problems go away; they could be caused by some of the settings you have enabled.
For comparison, here is mine excluding any commented lines:
% sed -e 's/#.*$//' -e 's/;.*$//' -e '/^$/d' /etc/samba/smb.conf
[global]
workgroup = ANGER
server string = Easy
hosts allow = 10.1.9
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
dns proxy = no
[nas]
comment = nas storage
path = /mnt/md0
valid users = facade
public = no
writable = yes
printable = noLast edited by graysky (2013-10-10 10:31:38)
Offline
Hello,
I have checked with your conf file as well. The write speed remains the same whereas the read speed as halved.
There are no errors in dmesg.
Offline
No ideas then... you did restart both the daemons after modifying the conf file, right?
Offline
Pages: 1