Z
Z
Zandred2020-12-06 11:43:16
Linksys
Zandred, 2020-12-06 11:43:16

How can you achieve a stable write and read speed of a network folder (shares)?

Good afternoon, I recently purchased a Linksys WRT32x, on which OpenWRT 19.07.4 was installed on the first day. I hooked up a hard drive via USB3.0 and set up Samba4, but no matter what I do, I can’t achieve a stable speed of the balls. When writing / reading, the speed drops from 80mb / s (cable) or 20mb / s (wi-fi) to 0kb, then rises to 10mb / s, and starts to "jump" between 10mb and 10kb (10kb - 2mb - 5mb - 10mb ). For three days I tried to figure it out myself, but in the end I decided to look for solutions here.
There are no problems in the hardware, each element individually works perfectly (case, disk), the router does not complain about speed either. I also checked the USB 3.0 drivers. I am attaching the config.

USB devices
[email protected]:~# lsusb -t
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M

Settings samba
config samba
option workgroup 'WORKGROUP'
option charset 'UTF-8'
option description 'Samba'
option interface 'lan'
option disable_async_io '1'
[global]
netbios name = |NAME|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|

bind interfaces only = yes

deadtime = 15

enable core files = no

security = user

invalid users = root

map to guest = Bad User

null passwords = yes

passdb backend = smbpasswd

socket options = IPTOS_LOWDELAY TCP_NODELAY

load printers = No
printcap name = /dev/null

disable spoolss = yes

printing = bsd

mdns name = mdns

veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
delete veto files = yes

Settings
spools config sambashare
option read_only 'no'
option users 'user1'
option guest_ok 'no'
option name 'data'
option path '/mnt/sdb1'
option dir_mask '0777'
option create_mask '0666'

Thanks everyone in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Zandred, 2020-12-14
@Zandred

I found out if the problem was in the overlay, or the problem was in the flash drive (software slowed down) or in that the openvrt firmware cannot process 2 usb streams (which is unlikely)

K
ky0, 2020-12-06
@ky0

How can you achieve a stable write and read speed of a network folder (shares)?

Use not a screw ball through Samba, but some other protocol.

V
Viktor Taran, 2020-12-06
@shambler81

what about your settings?
if it's Wi-Fi, then the question is the quality of the equipment and the employment of the channel in the current location.
If this is a wire, put gigabit or 10 gigabit
and also check the quality of the cable connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question