You are not logged in.

#1 2017-01-26 17:47:31

nbd
Member
Registered: 2014-08-04
Posts: 389

Very slow Samba on Arch from Windows 8.1 over WiFi

Hello,

I have a Samba server on an Arch machine (cable Ethernet network card) which is accessed from two Windows machines: 1) Windows 7, Ethernet cable; 2) Windows 8.1, WiFi. They are interconnected via router.

The problem is that copying files from Samba server to the Windows 8.1 machine (over WiFi) is very slow (~10 Kb/sec). All other interconnections work normally. E.g., the copying speed:

Arch -> Win8.1:  ~10 Kb/sec.
Win8.1 -> Arch:  > 2 Mb/sec
Win7 -> Win8.1: > 2 Mb/sec;
Arch -> Win7:     > 10 Mb/sec.

I tried various values and combinations of Samba tweakings, but none of them makes any difference on Win8.1 machine: always the same ~10 Kb/sec.

The current performance related Samba settings (from /etc/samba/smb.conf) are the following:

kernel oplocks = yes
use sendfile = yes
read raw = yes
write raw = yes
socket options = SO_RCVBUF=131072 SO_SNDBUF=1048576  TCP_NODELAY IPTOS_LOWDELAY
use sendfile = true
aio read size = 2048
aio write size = 2048
large readwrite = yes

What can be the cause of this problem?

Last edited by nbd (2017-01-26 17:48:30)


bing different

Offline

#2 2017-01-29 06:31:38

dviktor
Member
From: Moscow
Registered: 2015-10-18
Posts: 162

Re: Very slow Samba on Arch from Windows 8.1 over WiFi

Things should work properly without any Samba tweaking. What file system do you use for Samba shares? Are you trying to copy one or two big files or there just a lot of small files? What is the Samba version? Are there any non-standard settings for traffic shaper?

EDIT
Also please tell us the vendors of your NICs. May be related to your problem

Last edited by dviktor (2017-01-29 06:34:38)

Offline

#3 2017-01-29 11:12:53

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Very slow Samba on Arch from Windows 8.1 over WiFi

On Samba server files are on ext4 file system. Small files are copied very slow and larger ones (> 2 Mb) are not copied because of 0x8007003B error. Samba version is the current from Arch repo. No traffic shaping on router.

Maybe a Samba bug:

https://bugzilla.samba.org/show_bug.cgi?id=12003


bing different

Offline

#4 2017-01-30 14:23:31

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Very slow Samba on Arch from Windows 8.1 over WiFi

dviktor wrote:

Also please tell us the vendors of your NICs. May be related to your problem

00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
	Subsystem: Intel Corporation Device d61f
	Flags: bus master, medium devsel, latency 32, IRQ 19
	I/O ports at 2000 [size=256]
	Memory at 8a100000 (32-bit, non-prefetchable) [size=4K]
	Expansion ROM at 7e100000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: sis900
	Kernel modules: sis900

Don't know where the problem can be. Most likely some incompatibility in SMB protocols. But on which side? From Arch to Win8.1 files are copied very slow, if the copying is done from Win8.1 machine. But when the copying is done from Win7 machine: from Samba folder on Arch machine to a shared folder on Win8.1 machine, files are copied with normal speed.

In other words, the connections "Arch --> Win7" and "Win7 --> Win8.1" are OK. The problem is only on "Arch --> Win8.1" link.

I wonder, if there is someone with normally working link between Samba on Arch and Windows 8.1?

UPDATE:

Looks like the problem is on Samba's side. The similar slow speed problems with file copying I get when copying from Samba to Android on a tablet.

Last edited by nbd (2017-02-13 01:16:41)


bing different

Offline

Board footer

Powered by FluxBB