What's new

How to improve Samba speed on Merlin 386.5 AX86U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Maybe it's your client that's having an effect. It looks like you're using macOS? whereas I'm using Windows. Can you test from another client device?
That could be it. I'm running MacOS and get the same speeds as csmanul.
 
no i do not see any advantage in having 2 always on devices nas + router
This is where a DIY solution takes care of all your needs. I got sick of having ~6 devices and rolled them all into a single server including the Roter / WIFI / NAS and some others. A router isn't a NAS because it has a USB port on the side of it. It's not designed or meant to be anything more than a router / wifi solution. It's under powered and susceptible to corrupting your data when used as such. There's been plenty of horror stories about this here and other boards. It's just asking for trouble in the long run.
 
i disabled merlin fw samba then installed and configured samba v4.14.7 i just added my drive to the standard config result .... 45MB/s
with this samba version the negotiated protocol is now SMB_3.1.1
below my config file i used
Code:
[global]
netbios name = Entware-SMB4
interfaces = lo br0
server string = Samba on Entware
workgroup = WORKGROUP
guest account = nobody
security = user
map to guest = Bad User
guest ok = yes
#guest only = no
timestamp logs = no
preserve case = yes
short preserve case = yes
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
log level = 0
syslog = 0
passdb backend = smbpasswd
smb encrypt = disabled
smb passwd file = /opt/etc/samba/smbpasswd
printcap name = /opt/etc/printcap
[rack1tb]
comment = Realtek RTL9210B-CG's rack1tb
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/rack1tb
writeable = yes
dos filetimes = yes
fake directory create times = yes
 
That could be it. I'm running MacOS and get the same speeds as csmanul.
i like to think that a m1 mini with a wired connection to the router (cat6 cable) can do better than 50MB/s when copying files from samba, but i will follow on this suggestion and try on another machine and os.
 
i disabled merlin fw samba then installed and configured samba v4.14.7 i just added my drive to the standard config result .... 45MB/s
with this samba version the negotiated protocol is now SMB_3.1.1
below my config file i used
Code:
[global]
netbios name = Entware-SMB4
interfaces = lo br0
server string = Samba on Entware
workgroup = WORKGROUP
guest account = nobody
security = user
map to guest = Bad User
guest ok = yes
#guest only = no
timestamp logs = no
preserve case = yes
short preserve case = yes
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
log level = 0
syslog = 0
passdb backend = smbpasswd
smb encrypt = disabled
smb passwd file = /opt/etc/samba/smbpasswd
printcap name = /opt/etc/printcap
[rack1tb]
comment = Realtek RTL9210B-CG's rack1tb
veto files = /.__*.txt*/asusware*/asus_lighttpdpasswd/
path = /tmp/mnt/rack1tb
writeable = yes
dos filetimes = yes
fake directory create times = yes
Based on the speed at which you tried, it must have been fairly quick and painless.
 
summary with the new samba i get ~50MB\s m1 mini osx ~60MB\s on ubuntu ~80MB\s windows 10 (win+ubuntu same ssd dual boot) ftp speed is +100MB\s on all two machines and 3 OSs. i think i'll just leave it like that and use ftp when needed.
on osx + ubuntu tested with rsync.
on win with gui + robocopy (produces report at the end, speed mostly matches gui)
 
Try to create a smb.postconf script and paste the content below:


/jffs/scripts/smb.postconf
Code:
#!/bin/sh
CONFIG=$1
sed -i "/deadtime/d;/strict locking/d;/socket options/d" "$CONFIG"
sed -i "/global/a\socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE" "$CONFIG"
sed -i "/global/a\strict locking = no" "$CONFIG"
sed -i "/global/a\deadtime = 10" "$CONFIG"


Now unmount the USB drive and reboot the router.

If it works please let me know

Reference
 
Try to create a smb.postconf script and paste the content below:


/jffs/scripts/smb.postconf
Code:
#!/bin/sh
CONFIG=$1
sed -i "/deadtime/d;/strict locking/d;/socket options/d" "$CONFIG"
sed -i "/global/a\socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE" "$CONFIG"
sed -i "/global/a\strict locking = no" "$CONFIG"
sed -i "/global/a\deadtime = 10" "$CONFIG"


Now unmount the USB drive and reboot the router.

If it works please let me know

Reference
All these options and others have been discussed at length for years. None of them make any significant difference.
 
Try this - a low cost NAS that works incredibly well...

 
Try to create a smb.postconf script and paste the content below:


/jffs/scripts/smb.postconf
Code:
#!/bin/sh
CONFIG=$1
sed -i "/deadtime/d;/strict locking/d;/socket options/d" "$CONFIG"
sed -i "/global/a\socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE" "$CONFIG"
sed -i "/global/a\strict locking = no" "$CONFIG"
sed -i "/global/a\deadtime = 10" "$CONFIG"


Now unmount the USB drive and reboot the router.

If it works please let me know

Reference
thank you for your suggestion, unfortunately it does not increase the read or write throughput.
 
I had 80/90 speeds on ac86u on samba on lan
On ax86u, the speed is 60/90, while the load is only 50% 1 core.
Strange behavior of samba.
ax86u may well replace the home NAS, but the problem is in the samba program.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top