FreeBSD smbfs horrible slow
Martin Hanson
greencoppermine at yandex.com
Mon Oct 20 03:36:47 UTC 2014
Hi
I am running a FreeBSD 10.1-RC2 box on at network where a Debian
GNU/Linux box is hosting Samba.
Mounting the share from another Debian (using cifs) or from a Windows
box I get transfer rates at about 100 MB/s.
All boxes are on the same gigabit network.
Mounting the share from the FreeBSD box, using mount_smbfs or even
smbclient, I can max. get 10-15 MB/s.
I have tested the FreeBSD client on the exact same hardware as the
Debian client.
I am running with the following network card:
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port
0xdf00-0xdf1f mem 0xfdee0000-0xfdefffff,0xfdec0000-0xfdedffff irq 21
at device 0.0 on pci2
The mount command for smbfs is:
mount_smbfs -E
iso-8859-1:iso-8859-1 //foo at fileserver/pub3 /home/foo/mnt/fileserver/pub3
Now, testing the same on NFS I get the same transfer rate from Debian
to FreeBSD, ie. about 100 MB/s, so clearly the problem lies with
"mount_smbfs".
I cannot see any options to mount using cifs on FreeBSD.
The smb.conf from the Debian box looks like this:
[global]
workgroup = WORKGROUP
netbios name = Fileserver
server string = %h server
dns proxy = no
interfaces = 127.0.0.0/8 eth0
bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY
SO_RCVBUF=131072 SO_SNDBUF=131072 strict sync = no
sync always = no
printable = no
printing = bsd
printcap name = /dev/null
[pub3]
path=/pub3
browseable = yes
read only = yes
valid users = foo
admin users = foo, bar
read list = bar
write list = foo
create mask = 0775
directory mask = 0775
What can be done to improve the performance of the FreeBSD client?
Kind regards.
More information about the freebsd-questions
mailing list