I've been playing around with my Samba share today to try and get a bit more speed out of transfers between Windows 7 users and the Samba share.
First off, here's the hardware/setup:
RT-AC56U
WD Mybook 3tb USB3 Drive
Windows 7 desktop
Before doing anything to it , using mostly default settings, writing speeds were hovering between 10-14 MB/s.
After a bit of reading and google, I've tried adding "socket options = TCP_NODELAY" to the smb.conf via /jffs/configs/smb.conf
Writing Speeds went up between 30-40 MB/s !!
Here's something I've read coming straight from samba.org:
Would it be possible to add this quick fix to the next FW release?
Edit: Here's the "quick fix" I made for myself following the comments down below
Save as smb.postconf under /jffs/scripts
chmod a+rx /jffs/scripts/*
Voila!
First off, here's the hardware/setup:
RT-AC56U
WD Mybook 3tb USB3 Drive
Windows 7 desktop
Before doing anything to it , using mostly default settings, writing speeds were hovering between 10-14 MB/s.
After a bit of reading and google, I've tried adding "socket options = TCP_NODELAY" to the smb.conf via /jffs/configs/smb.conf
Writing Speeds went up between 30-40 MB/s !!
Here's something I've read coming straight from samba.org:
The socket option TCP_NODELAY is the one that seems to make the biggest single difference for most networks. Many people report that adding socket options = TCP_NODELAY doubles the read performance of a Samba drive. The best explanation I have seen for this is that the Microsoft TCP/IP stack is slow in sending TCP ACKs.
Would it be possible to add this quick fix to the next FW release?
Edit: Here's the "quick fix" I made for myself following the comments down below
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_insert "wide links = no" "socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072" $CONFIG
chmod a+rx /jffs/scripts/*
Voila!
Last edited: