[Samba] Speedup windows client [was] What is the maximum speed for download from a samba share
Knut Krüger
itservice at knut-krueger.de
Wed May 2 14:59:46 UTC 2018
Am 25.04.2018 um 09:56 schrieb L.P.H. van Belle via samba:
> As counter example.
> My slowest server, AMD E350 2 core, max 1.6Gz.
> On 1Gb lan, disk 2x 5400rpm software raid 1 + 1 ssd.
>
> Copy Speed 115Mb/s as in max 1Gb bandwith, from a win7 and win10 pc to the raid1.
>
> File sizes.
> 100Mb+ get max 115Mb/s to a 4MB blocksized partition.
> 1-10mb files ,max 90-115Mb/s to a 1MB blocksized partition.
> 0.0-1mb files ,max 60-100Mb/s to a 4k blocksized partition.
>
> I get these speeds while im watching my kodi. ;-) Samba 4.6.x on ubuntu 17.10
> One note here, i use kernel 4.16.1 from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D
> Thats mostly for kodi and the amd GPU driver, but i do notice bit better perfomance with these higher kernels.
>
> Is the Lenovo Thinkpad T520 with Windows 7, connecting over Wifi?
> Because on wifi, even if i set my laptop 3 meters from the AP, i dont get max.
> About 1/2 the speeds, if lucky 3/4 the above speeds.
> Test you wifi with inSSIDer, optimze the chanels.
> Gave me about +25% speed at home on the wifi.
>
>> one of the virtual machine is the samba VM connected via VPN
>> Looking to the cpu usage of this VM ist nearly zero during downloads.
> Did you tweak your MTU sizes?
No
> With things like :
> iptables -A PREROUTING --match policy --pol ipsec --dir in -i eth+ -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1361:1536 -j TCPMSS --set-mss 1360
> Maybe disable Path MTU discovery to prevent packet fragmentation problems. Helps alo ( net/ipv4/ip_no_pmtu_disc=1 )
>
> Last, login on the proxymod monitor IRQ use, if you have extra cards in the server
it is a virtual machine on a proxmox root server
I just realized that the data transfer rate is going down after a while
also on a linux workstation to the same slow speed as on windows
workstation.
the root server is nearly idle
top - 16:46:31 up 313 days, 4:45, 1 user, load average: 0.25, 0.42, 0.39
Tasks: 39 total, 1 running, 38 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.7 us, 2.9 sy, 0.0 ni, 96.2 id, 0.0 wa, 0.0 hi, 0.1 si,
0.0 st
KiB Mem: 2097152 total, 767176 used, 1329976 free, 0 buffers
KiB Swap: 2097152 total, 61172 used, 2035980 free, 725864 cached
here the smb.conf
[global]
socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288
SO_KEEPALIVE IPTOS_LOWDELAY
nt acl support = no
vfs object = recycle
recycle:repository = Papierkorb
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0
vfs objects = acl_xattr
map acl inherit = Yes
unix charset = ISO-8859-1
display charset = ISO-8859-1
security = share
share modes = yes
server string = %h server
dns proxy = no
interfaces=10.8.2.0/255.255.255.0
bind interfaces only = yes
disable netbios = yes
smb ports = 445
client NTLMv2 auth = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
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
map to guest = bad user
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
usershare allow guests = no
min receivefile size = 2048
use sendfile = true
aio read size = 2048
aio write size = 2048
write cache size = 1024000
read raw = yes
write raw = yes
getwd cache = yes
oplocks = yes
max xmit = 32768
dead time = 15
large readwrite = yes
[homes]
comment = Home Directories
browseable = yes
read only = no
valid users = %S
[test]
vfs object = recycle
recycle:repository = Papierkorb
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0
path = /var/datas/test/
public = yes
writable = yes
read only = no
comment = smb share
printable = no
guest ok = yes
create mode = 0775
force user = root
force group = root
More information about the samba
mailing list