You are not logged in.

#1 2016-10-01 14:57:12

haze730
Member
Registered: 2013-08-14
Posts: 2

Samba is super slow

I set up samba on a box to use as a file server just to share home directories. Getting transfers at 2.5 - 5 MB/s.  I set it up on another machine just to see if that one was the problem.  Same thing between multiple computers.  I'm not very experienced with samba. Here is testparm output:

# Global parameters
[global]
	server string = Server
	workgroup = HOME
	log file = /var/log/samba/%m.log
	max log size = 50
	reset on zero vc = Yes
	load printers = No
	unix extensions = No
	security = USER
	dns proxy = No
	idmap config * : backend = tdb
	wide links = Yes
	hosts allow = 192.168.1. 192.168.2. 127.


[homes]
	comment = Home Directories
	browseable = No
	read only = No

Offline

#2 2016-10-05 10:57:07

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Samba is super slow

What's the network speed of the slowest device between server and clients (network cards, switches, etc)?
While testing, is there any other traffic going on on the network, or is the test setup isolated and with one client at a time?
Does it affect both incoming and outgoing transfers (from the server's point of view)?

Offline

#3 2016-10-05 11:34:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Samba is super slow

Is this a wired or wireless network?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-10-06 03:12:38

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Samba is super slow

This is my config /etc/samba/smb.conf

I recommend iperf3ing your network since I had an issue once where my Gigabit hub wasn't at Gigabit speeds. Bizarre.

I get 80mb/sec https://www.youtube.com/watch?v=t72zTyze25c

Offline

#5 2016-10-11 15:48:46

saivert
Member
Registered: 2014-06-13
Posts: 19

Re: Samba is super slow

I actually improved speeds by making sure CIFS mounts use protocol version 3 by adding vers=3.0 to mount options. Seems like it defaults to version 1.0.
This is on the client side obviously. I never had speed issues with Linux samba as server and Windows as client but it was slower Linux to Linux. Upping the CIFS version did the trick.

Offline

#6 2016-10-15 01:44:32

gerdesj
Member
Registered: 2016-04-17
Posts: 13

Re: Samba is super slow

saivert wrote:

I actually improved speeds by making sure CIFS mounts use protocol version 3 by adding vers=3.0 to mount options. Seems like it defaults to version 1.0.
This is on the client side obviously. I never had speed issues with Linux samba as server and Windows as client but it was slower Linux to Linux. Upping the CIFS version did the trick.

Are you getting roughly 125MBs-1 now? (you should)

Offline

Board footer

Powered by FluxBB