NAS (samba) data transfer speed problems

Thanks, this si, what I playing with now, because it is not storage problem.

Next articles, that I use:

https://wiki.amahi.org/index.php/Make_Samba_Go_Faster
https://wiki.openwrt.org/doc/uci/samba
https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

And i try to use some settings, that use AsusWRT.Merlin, that I use last year.

1 Like

Not shure, which parameter, or combination it was, but it seems, that my problem was solved.

This is, what I have now in configuration. It seems, that problem was solved with socket options and/or spoolss.


[global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
browseable = yes
deadtime = 30
encrypt passwords = true
enable core files = no
guest account = nobody
guest ok = yes
invalid users = root
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
passdb backend = smbpasswd
preferred master = yes
printable = no
security = user
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
;xxxxxxxx
max connections = 20
domain master = no
local master = no
use sendfile = no
writeable = yes
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
wide links = no
os level = 33
syslog = 0
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
disable spoolss = yes

2 Likes

Hmm good job, maybe you can track down the changes by saving this good config now and doing also a snapshot, and then roll back to a previous snapshot to check the old wrong config, and compare the two. Then go back to the newer snapshot. Then report here the difference and conclusion which option helped you in the end.

Note: it’s possible to just mount btrfs snapshot into a directory (no need to roll back).